plot_cooksD: plot_cooksD

Description Usage Arguments Value Examples

Description

Identify highly influential observations based on cooks distance. Common outlier threshold is 4*mean of cooksD

Usage

1
plot_cooksD(lin.mod, threshold, noplot)

Arguments

lin.mod

model fit, lm, glm, lmm, glmm

threshold

threshold for outlier flagging. Usually 4 (4*mean cooks D)

noplot

optional to plot outlier observations, leave blank for no plot

Value

a list of observation indices based on the original data frame

Examples

1
outliers.cooksd <- plot_cooksD(fit, noplot = TRUE)

mikeod38/dauergut documentation built on May 30, 2019, 7:16 p.m.