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