cooks.20x {s20x} | R Documentation |
Draws a Cook's distance plot.
cooks.20x(lmfit)
lmfit |
output from the function "lm()". |
Returns the plot and identifies the three highest Cook's values
# Peruvian Indians data data(peru.df) attach(peru.df) fit1<-lm(BP~age+years+I(years^2)+weight+height) cooks.20x(fit1) detach(peru.df)