Re: [R] The function predict

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Mon, 11 Feb 2008 09:43:26 +0000 (UTC)

Carla Rebelo <crebelo <at> liaad.up.pt> writes:

> May you help me? I need to understand the function predict. I need to
> understand the algorithm implemented, the calculations associated. Where
> can I find this information?

In the documentation:

"predict is a generic function for predictions from the results of various model fitting functions. The function invokes particular methods which depend on the class of the first argument."

There is no information available for the default predict function, but there is information for the predict.XXX implementations mentioned further below:

See Also

predict.glm, predict.lm, predict.loess, predict.nls, predict.poly, predict.princomp, predict.smooth.spline.

For time-series prediction, predict.ar, predict.Arima, predict.arima0, predict.HoltWinters, predict.StructTS.

For details, you should look into the examples provided with predict.lm (as the simplest starter), and the code.

Dieter



R-help_at_r-project.org 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. Received on Mon 11 Feb 2008 - 09:49:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Feb 2008 - 10:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive