jcreg_cooksd: Cook's Distance Plot

Description Usage Arguments Value Examples

View source: R/assumption_checking.R

Description

Plots the absolute value of cook's distance against observation number.

Usage

1
jcreg_cooksd(model, nLabels = 3)

Arguments

model

A linear regression model of class stats::lm.

nLabels

The number of potential influential points to label. Defaults to 3. A value of 0 means do not label potential influential points. There is currently a bug where it always labels at least one point.

Value

Returns a ggplot object.

Examples

1
jcreg_cooksd(lm(brozek ~ ., data = bodyfat))

mtnbikerjoshua/jcreg documentation built on April 18, 2021, 10:01 p.m.