tsutils (version 0.9.0)

residout: Residuals control chart

Description

Create a control chart of residuals and identify outliers.

Usage

residout(resid, t = 2, outplot = c(TRUE, FALSE))

Arguments

resid

vector of residuals.

t

threshold value over which standardised residuals are regarded as outliers.

outplot

if TRUE, then a control chart of the standardised residuals is plotted.

Value

A list containing:

  • location: locations of outliers.

  • outliers: values of outliers.

  • residuals: standardised residuals.

Examples

Run this code
# NOT RUN {
residout(rnorm(50), outplot=TRUE)

# }

Run the code above in your browser using DataCamp Workspace