Re: [R] OLS standard errors

2008-02-26 Thread Viechtbauer Wolfgang (STAT)
://www.wvbauer.com/ Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Malter Sent: Tuesday, February 26, 2008 08:25 To: 'r-help' Subject: [R] OLS standard errors > Hi, > > the standard errors of the coefficients in two regressions that I >

Re: [R] OLS standard errors

2008-02-26 Thread Prof Brian Ripley
Please check your statistical methods lecture notes. var(e) has divisor n-1, and that is not an unbiased estimator of the residual variance when 'e' are residuals. From summary.lm (and you are allowed to read the code) rdf <- n - p if (is.na(z$df.residual) || rdf != z$df.residual)

Re: [R] OLS standard errors

2008-02-25 Thread Peter Dalgaard
Daniel Malter wrote: > Hi, > > the standard errors of the coefficients in two regressions that I computed > by hand and using lm() differ by about 1%. Can somebody help me to identify > the source of this difference? The coefficient estimates are the same, but > the standard errors differ. > > ###

[R] OLS standard errors

2008-02-25 Thread Daniel Malter
Hi, the standard errors of the coefficients in two regressions that I computed by hand and using lm() differ by about 1%. Can somebody help me to identify the source of this difference? The coefficient estimates are the same, but the standard errors differ. Simulate data hap