outEff: Plot Effects of Removing Outliers

Description Usage Arguments Author(s)

Description

Plots the effect of a variable sequentially removing outlying observations.

Usage

1
2
3
4
5
6
7
8
9
outEff(
  obj,
  var,
  data,
  stat = c("cooksD", "hat", "deviance", "pearson"),
  nOut = 10,
  whichOut = NULL,
  cumulative = FALSE
)

Arguments

obj

An object of class glm that will be used to plot the outlier removed lines.

var

A character string giving the name of the variable to be used.

data

A data frame.

stat

Which statistic to use to evaluate ‘outlyingness’.

nOut

Number of outliers to be removed.

whichOut

If not NULL, a vector of observation numbers to be removed manually, rather than using stat.

cumulative

Logical indicating whether the outliers should be removed cumulatively, or each one in turn, replacing the other outlying observations.

Author(s)

Dave Armstrong


DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.