Rev 7340 | 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 functions listed in \bold{See Also} give a more direct wayof computing a variety 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).}\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)rstudent(lm.SR)dfbetas(lm.SR)dffits(lm.SR)covratio(lm.SR)}\keyword{regression}