\Header{fitted}{Extract Model Fitted Values}
\methalias{fitted.default}{fitted}
\methalias{fitted.values}{fitted}
\keyword{models}{fitted}
\keyword{regression}{fitted}
\begin{Description}\relax
\code{fitted} is a generic function which extracts fitted values from
objects returned by modeling functions.  \code{fitted.values} is an
alias for it.

All object classes which are returned by model fitting functions
should provide a \code{fitted} method.  (Note that the generic is
\code{fitted} and not \code{fitted.values}.)

Methods can make use of \code{\Link{napredict}} methods to compensate
for the omission of missing values.  The default, \code{lm} and
\code{glm} methods do.
\end{Description}
\begin{Usage}
\begin{verbatim}
fitted(object, ...)
fitted.values(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object for which the extraction of model fitted values is
meaningful.
\item[\code{...}] other arguments.
\end{ldescription}
\end{Arguments}
\begin{Value}
Fitted values extracted from the object \code{x}.
\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{coefficients}}, \code{\Link{glm}}, \code{\Link{lm}},
\code{\Link{residuals}}.
\end{SeeAlso}

