chau: apply Chauvenet's criterion to find outliers

View source: R/chau.R

chauR Documentation

apply Chauvenet's criterion to find outliers

Description

apply Chauvenet's criterion to find outliers

Usage

chau(y, threshold, na.rm = TRUE)

Arguments

y

a numeric vector time series

na.rm

boolean defaults to TRUE for mean and sd

predetermined

threshold

Value

a list of two vectors: outliers boolean vector where TRUE is the outliers and crit which are the critical values.

Examples

# make some data
y <- sin(1:100 / pi)
y[25] <- y[25]*3

chau(y, .5)

williamcioffi/chf documentation built on June 9, 2022, 5:38 p.m.