Rev 15168 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{lm.influence}\title{Regression Diagnostics}\usage{lm.influence(lm.obj)}\alias{lm.influence}\arguments{\item{lm.obj}{an object as returned by \code{\link{lm}}.}}\description{This function provides the basic quantities which areused in forming a wide variety of diagnostics forchecking the quality of regression fits.}\details{The \code{\link{influence.measures}()} and other functions listed in\bold{See Also} provide a more user oriented way of computing avariety of regression diagnostics.}\value{A list containing the following components:\item{hat}{a vector containing the diagonal of the ``hat'' matrix.}\item{coefficients}{the change in the estimated coefficients which resultswhen the i-th case is dropped from the regression is contained inthe i-th row of this matrix.}\item{sigma}{a vector whose i-th element contains the estimateof the residual standard deviation obtained when the i-thcase is dropped from the regression.}}\note{The \code{coefficients} returned by the \R versionof \code{lm.influence} differ from those computed by S.Rather than returning the coefficients which resultfrom dropping each case, we return the changes in the coefficients.This is more directly useful in many diagnostic measures.Note that cases with \code{weights == 0} are \emph{dropped} (contraryto the situation in S).if a model has been fitted with \code{na.action=na.exclude} (see\code{\link{na.exclude}}), cases excluded in the fit \emph{are}considered here.}\references{Belsley, D. A., Kuh, E. and Welsch, R. E. (1980)\emph{Regression Diagnostics.}New York: Wiley.}\seealso{\code{\link{summary.lm}} for \code{\link{summary}} and related methods;\cr\code{\link{influence.measures}},\cr\code{\link{hat}} for the hat matrix diagonals,\cr\code{\link{dfbetas}},\code{\link{dffits}},\code{\link{covratio}},\code{\link{cooks.distance}},\code{\link{lm}}.}\examples{## Analysis of the life-cycle savings data## given in Belsley, Kuh and Welsch.data(LifeCycleSavings)summary(lm.SR <- lm(sr ~ pop15 + pop75 + dpi + ddpi,data = LifeCycleSavings),corr = TRUE)str(lmI <- lm.influence(lm.SR))## For more `user level' examples, use example(influence.measures)}\keyword{regression}