\Header{effects}{Effects from Fitted Model}
\alias{effects.lm}{effects}
\alias{effects.glm}{effects}
\keyword{models}{effects}
\keyword{regression}{effects}
\begin{Usage}
\begin{verbatim}
effects(object, ...)
effects.lm(object, set.sign=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{object}] list; typically, the result of a model fitting function
such as \texttt{\Link{lm}}
\item[\texttt{set.sign}] logical ~~Describe \texttt{set.sign} here~~ 
\end{ldescription}
\end{Arguments}
\begin{Description}
Returns (orthogonal) effects from a fitted (generalized) regression
model.  In case of a full rank \eqn{n \times p}{n * p}
\texttt{\Link{model.matrix}}, the first \eqn{p}{} effects correspond to
coefficients and the remaining \eqn{n-p}{} ones to residuals.\end{Description}
\begin{Details}
\dots\dots FIXME \dots\dots

This page is not complete yet!\end{Details}
\begin{Value}
A (named) numeric vector of the same length as
\texttt{\Link{residuals}}.  The first \eqn{p}{} values are labeled
according to the corresponding coefficients, the remaining ones are
unlabeled.

The result currently has \texttt{\Link{class}} \texttt{"coef"}.

\dots\dots FIXME \dots\dots\end{Value}
\begin{SeeAlso}
\texttt{\Link{coef}}, \texttt{\Link{fitted}}, etc.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
y <- c(1:3,7,5)
x <- c(1:3,6:7)
( ee <- effects(lm(y ~ x)) )
c(round(ee - effects(lm(y+10 ~ I(x-3.8))),3))# just the first is different
\end{ExampleCode}
\end{Examples}

