[Rd] bugs in summary.lm (PR#7061)

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Jul 7 00:30:11 CEST 2004


yangsu at rutchem.rutgers.edu writes:

> Full_Name: Yang Su
> Version: 1.9.0
> OS: mac.ox
> Submission from: (NULL) (128.6.69.117)
> 
> 
> Hi 
> 
> I always get a large R^2 when i using summary.lm(lm(x~y-1)), where i force my
> intercept as 0.  also i got 
> an  crazy F - statictis number for the regression compare to my handed
> calculations
> 
> could you like check, and give  me an email ASAP. 
> 
> thanks lots!

Not a bug, but due to the fact that the null model is different when
there is no intercept. Please read the description of what constitutes
a bug at http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html#R%20Bugs

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-devel mailing list