Return data required for diagnostic plots
This extracts the code that provides the major part of the statistical information used by plot.lm, leaving out the code used to provide the graphs
lmdiags(x, which = c(1L:3L, 5L), cook.levels = c(0.5, 1), hii=NULL)
x |
This must be an object of class |
which |
a subset of the numbers '1:6', indicating the plots for which statistical information is required |
cook.levels |
Levels for contours of |
hii |
Diagonal elements for the hat matrix. If not supplied
( |
See plot.lm
for additional information.
yh |
fitted values |
rs |
standardized residuals (for |
yhn0 |
As |
cook |
Cook's statistics |
rsp |
standardized residuals (for |
This function is designed, in the first place, for use in connection
with plotSimDiags
, used to give simulations of
diagnostic plots for lm
objects.
John Maindonald, using code that John Maindonald, Martin Maechler and
others had contributed to plot.lm
See references for plot.lm
women.lm <- lm(weight ~ height, data=women) veclist <- lmdiags(x=women.lm) ## Returns the statistics that are required for graphs 1, 2, 3, and 5
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.