[R] How to get function from lm object?

Marc Schwartz marc_schwartz at me.com
Fri Jul 10 05:06:39 CEST 2009


On Jul 9, 2009, at 8:20 PM, Alexander V Stolpovsky wrote:

> Thank you much for the useful pointers. Turns out, I can get what I  
> want with predict(fit, newdata = newdata). But for the record, there  
> is no way to get the fit function, from lm object, is there?
>  Alex

Alex,

There is no function returned within the model object.

You can review the structure of the returned model object by using:

   str(fit)

HTH,

Marc Schwartz




More information about the R-help mailing list