outEff {DAMisc}R Documentation

Plot Effects of Removing Outliers

Description

Plots the effect of a variable sequentially removing outlying observations.

Usage

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


[Package DAMisc version 1.7.2 Index]