Plots the effect of a variable sequentially removing outlying observations.
outEff(
obj,
var,
data,
stat = c("cooksD", "hat", "deviance", "pearson"),
nOut = 10,
whichOut = NULL,
cumulative = FALSE
)
An object of class glm
that will be used to plot the
outlier removed lines.
A character string giving the name of the variable to be used.
A data frame.
Which statistic to use to evaluate ‘outlyingness’.
Number of outliers to be removed.
If not NULL
, a vector of observation numbers to be
removed manually, rather than using stat
.
Logical indicating whether the outliers should be removed cumulatively, or each one in turn, replacing the other outlying observations.