Skip to content
Prev 42468 / 398506 Next

Constructing a lm for predict() by hand

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