[R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread Samuel Le
Hello, I was wondering if someone knows the formula used by the function lm to compute the t-values. I am trying to implement a linear regression myself. Assuming that I have K variables, and N observations, the formula I am using is: For the k-th variable, t-value= b_k/sigma_k With

Re: [R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread David Winsemius
On Aug 1, 2011, at 9:27 AM, Samuel Le wrote: Hello, I was wondering if someone knows the formula used by the function lm to compute the t-values. I am trying to implement a linear regression myself. Assuming that I have K variables, and N observations, the formula I am using is: For

Re: [R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread peter dalgaard
On Aug 1, 2011, at 15:27 , Samuel Le wrote: Hello, I was wondering if someone knows the formula used by the function lm to compute the t-values. I am trying to implement a linear regression myself. Assuming that I have K variables, and N observations, the formula I am using

Re: [R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread S Ellison
-Original Message- [mailto:r-help-boun...@r-project.org] On Behalf Of Samuel Le Subject: [R] formula used by R to compute the t-values in a linear regression I was wondering if someone knows the formula used by the function lm to compute the t-values. Typing summary.lm I

Re: [R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread Samuel Le
Exactly. My formula holds only for k=1, this is how I generated it. Do you have any references concerning the rather more careful algorithms? Thanks, Samuel -Original Message- From: peter dalgaard [mailto:pda...@gmail.com] Sent: 01 August 2011 14:45 To: Samuel Le Cc:

Re: [R] formula used by R to compute the t-values in a linear regression

2011-08-01 Thread Samuel Le
Yes, that's what I was looking for. Many thanks, Samuel -Original Message- From: S Ellison [mailto:s.elli...@lgcgroup.com] Sent: 01 August 2011 15:16 To: Samuel Le; r-h...@stat.math.ethz.ch Subject: RE: formula used by R to compute the t-values in a linear regression -Original