plot_cooksD: plot_cooksD

Description Usage Arguments Value Examples

View source: R/plot_cooksD.R

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/ProvidenciaChemo documentation built on April 6, 2020, 11:57 p.m.