plot.outlier_model: Plot Distribution of Test Statistic

Description Usage Arguments Details Value

View source: R/helper_outlier.R

Description

A plot method to show the approximated distribution of the deviance test statistic

Usage

1
2
## S3 method for class 'outlier_model'
plot(x, sig_col = "#FF0000A0", ...)

Arguments

x

An object returned from fit_outlier

sig_col

Color of the significance level area (default is red)

...

Not used. For S3 compatability.

Details

The dotted line represents the observed test statistic of z and the colored (red is default) area under the graph represents the significance level.

Thus, if z is supplied and the dotted line is to the left of the colored area, the hypothesis that the observation is an outlier cannot be rejected. Notice however, if there is no dotted line, this simply means, that the observed test statistic is larger than all values and it would disturb the plot if included.

Value

No return value, called for side effects


molic documentation built on June 2, 2021, 5:07 p.m.