exceedances | R Documentation |
Compute exceedances of a threshold for a time series
exceedances(x, ...)
## Default S3 method:
exceedances(x, ...)
## S3 method for class 'nhpp'
exceedances(x, ...)
## S3 method for class 'ts'
exceedances(x, ...)
## S3 method for class 'double'
exceedances(x, threshold = mean(x, na.rm = TRUE), ...)
x |
a numeric vector coercible into a stats::ts object |
... |
arguments passed to methods |
threshold |
A value above which to exceed. Default is the |
An ordered integer
vector giving the indices of the values of x
that exceed the threshold
.
# Retrieve exceedances of the series mean
fit_nhpp(DataCPSim, tau = 826) |>
exceedances()
# Retrieve exceedances of a supplied threshold
fit_nhpp(DataCPSim, tau = 826, threshold = 200) |>
exceedances()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.