\HeaderA{fitted}{Extract Model Fitted Values}{fitted}
\methaliasA{fitted.default}{fitted}{fitted.default}
\methaliasA{fitted.values}{fitted}{fitted.values}
\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{\LinkA{napredict}{napredict}} methods to compensate
for the omission of missing values.  The default and \code{\LinkA{nls}{nls}}
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{\LinkA{coefficients}{coefficients}}, \code{\LinkA{glm}{glm}}, \code{\LinkA{lm}{lm}},
\code{\LinkA{residuals}{residuals}}.
\end{SeeAlso}

