tsutils (version 0.9.4)

residout: Residuals control chart

Description

Create a control chart of residuals and identify outliers.

Usage

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

Value

A list containing:

  • location: locations of outliers.

  • outliers: values of outliers.

  • residuals: standardised residuals.

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.

Author

Nikolaos Kourentzes, nikolaos@kourentzes.com.

Examples

Run this code
residout(rnorm(50), outplot=TRUE)

Run the code above in your browser using DataLab