From p.dalgaard@biostat.ku.dk  Mon Aug  7 22:06:56 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 07 Aug 2000 23:06:56 +0200
Subject: [Rd] predict.lm is broken in 1.1.0-patched (2000-August-7) (PR#627)
In-Reply-To: thomas@biostat.washington.edu's message of "Mon, 7 Aug 2000 21:58:18 +0200 (MET DST)"
References: <200008071958.VAA03515@pubhealth.ku.dk>
Message-ID: <x2og34232n.fsf@blueberry.kubism.ku.dk>

thomas@biostat.washington.edu writes:

> > > coef.aov
> > function (object, ...) 
> > {
> >     z <- object$coef
> >     z[!is.na(z)]
> > }
> > > coef.lm 
> > function (object, ...) 
> > object$coefficients
> 
> Ok, this explains it.  I *did* test it with a singular fit, but only with
> lm(), not with aov().
> 
> coef.lm seems a more sensible convention, since it's a lot easy to remove
> the NAs than to add them.

I've committed a fix for predict.lm to use object$coefficients
directly, but I haven't done anything with the coef() methods.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] predict.lm is broken in 1.1.0-patched (2000-August-7) (PR#627)
Peter Dalgaard BSA