« Return to Thread: How to get function from lm object?

Re: How to get function from lm object?

by Marc Schwartz-3 :: Rate this Message:

Reply to Author | View in Thread

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

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

 « Return to Thread: How to get function from lm object?