influence_plot(M,large.cook,cooks=FALSE)
TRUE
or FALSE
(default) regarding whether to return the row numbers of observations with unusually large Cooks distances
$Cooks
) and according to leverage/residual criteria ($Leverage
).
Influence can also be measured by Cook's distance, which essentially combines the above two measures. This function considers the Cook's distances to be large when it exceeds 4/n, but the user can specify another cutoff.
The radius of a point is proportional to the square root of the Cook's distance. Influential points according to leverage/residual criteria have an X through them while influential points according to Cook's distance are bolded.
The function returns the row numbers of influential observations.
cooks.distance
, hatvalues
, rstudent
data(TIPS)
M <- lm(TipPercentage~.-Tip,data=TIPS)
influence_plot(M)
Run the code above in your browser using DataLab