[R] Constructing a lm for predict() by hand

Alexander Wise wise at cs.umass.edu
Tue Jan 6 16:04:30 CET 2004


Hello, this probably seems like an odd question, but...

If I have the formula and the coefficients for a linear model that I 
would like to apply to some data using predict() -- is there a way I 
construct an object of type lm such that predict() will work with it? 
Or another way besides predict()?

Alexander Wise
Senior Software Engineer
http://laser.cs.umass.edu




More information about the R-help mailing list