Skip to contents

Calculate the proportion of values in a time series greater than absolute 3*SD

Usage

prop_abs_above_3SD(y, na.rm = FALSE)

Arguments

y

numeric vector of values

na.rm

Boolean denoting whether missing values be removed. Defaults to FALSE

Value

numeric scalar denoting the proportion of values in y greater than absolute 3*SD

Author

Trent Henderson

Examples

y <- arima.sim(model = list(ar = 0.8), n = 1000)
outs <- prop_abs_above_3SD(y)