predict (object, ...)
- a model object for which prediction is desired.
- additional arguments affecting the predictions produced.
Most prediction methods which are similar to those for linear models have an argument
newdata specifying the first place to look for explanatory variables to be used for prediction. Some considerable attempts are made to match up the columns in
newdata to those used for fitting, for example that they are of comparable types and that any factors have the same level set in the same order (or can be transformed to be so).
Time series prediction methods in package stats have an argument
n.ahead specifying how many time steps ahead to predict.
Many methods have a logical argument
se.fit saying if standard errors are to returned.
The form of the value returned by
predict depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.
Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole.
SafePrediction for prediction from polynomial and spline fits.
For time-series prediction,
Documentation reproduced from R 3.0.2. License: GPL-2.