Skip to content
Prev 267241 / 398502 Next

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

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:pdalgd at gmail.com]
Sent: 01 August 2011 14:45
To: Samuel Le
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] formula used by R to compute the t-values in a linear regression
On Aug 1, 2011, at 15:27 , Samuel Le wrote:

            
AFAICT, your formula only holds for K=1. Otherwise, the formula for sigma_k involves matrix inversion. Also, even for K=1, beware that textbook formulas like SSDx = SSx - (Sx)^2/n involve subtraction of nearly equal quantities and easily loses multiple digits of precision, so software tends to use rather more careful algorithms.

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
"D?den skal tape!" --- Nordahl Grieg









__________ Information from ESET NOD32 Antivirus, version of virus signature database 6275 (20110707) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 6275 (20110707) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com