Skip to content

Identify influential observations

Source: man/performInfluenceDiagnostics.Rd ยท Help: ?performInfluenceDiagnostics

Uses Cook's distance to flag influential observations.

Usage

performInfluenceDiagnostics(model, cutoff = NULL)

Arguments

model
A fitted lm model.
cutoff
Cook's distance threshold; defaults to 4/(n - p).

Value

A list with Cook's distances and indices of influential points.

Examples

data(mtcars)
m <- lm(mpg ~ wt + qsec, data = mtcars)
performInfluenceDiagnostics(m)