\Header{predict}{Model Predictions}
\keyword{methods}{predict}
\begin{Description}\relax
\code{predict} is a generic function for predictions from the results of
various model fitting functions.  The function invokes particular
\emph{methods} which depend on the \code{\Link{class}} of
the first argument.

The function \code{\Link{predict.lm}} makes predictions based on the
results produced by \code{\Link{lm}}.\end{Description}
\begin{Usage}
\begin{verbatim}
predict (object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] a model object for which prediction is desired.
\item[\code{...}] additional arguments affecting the predictions produced.
\end{ldescription}
\end{Arguments}
\begin{Value}
The form of the value returned by \code{predict} depends on the
class of its argument.  See the documentation of the
particular methods for details of what is produced by that method.\end{Value}
\begin{References}\relax
Chambers, J. M. and Hastie, T. J. (1992)
\emph{Statistical Models in S}.
Wadsworth \& Brooks/Cole.\end{References}
\begin{SeeAlso}\relax
\code{\Link{predict.lm}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## All the "predict" methods visible in your current search() path.
## NB most of the methods in the base packages are hidden.
for(fn in methods("predict"))
   try(cat(fn,":\n\t",deparse(args(get(fn))),"\n"), silent = TRUE)
\end{ExampleCode}
\end{Examples}

