R-alpha: predict

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Fri, 13 Sep 1996 12:32:22 +1200

Date: Fri, 13 Sep 1996 12:32:22 +1200
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199609130032.MAA01480@stat.auckland.ac.nz>
To: Thomas Lumley <thomas@biostat.washington.edu>
Subject: R-alpha: predict
In-Reply-To: <Pine.SUN.3.91.960912144019.13098G@chekov>

Thomas Lumley writes:
 > There is an undocumented predict() function in R 0.11.  It looks as 
 > though it is supposed to predict from a fitted linear model, but not in 
 > the form of an lm object.  
 > In S-PLUS, predict() is a generic function with no default. Should we 
 > redefine it?
 > predict.default<-predict
 > predict<-function(fit,...) UseMethod("predict",fit,...)

Yes!  The present predict is a by-product of work by one of our grad
students last summer.  It should definitely die and be replaced by the
above generic and specific methods.
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch