chau | R Documentation |
apply Chauvenet's criterion to find outliers
chau(y, threshold, na.rm = TRUE)
y |
a numeric vector time series |
threshold |
predetermined |
na.rm |
boolean defaults to TRUE for |
a list of two vectors: outliers
boolean vector where TRUE is the outliers and crit
which are the critical values.
# make some data
y <- sin(1:100 / pi)
y[25] <- y[25]*3
chau(y, .5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.