View source: R/index.spellmax.annual.prcXXth.R
index.spellmax.annual.prcXXth | R Documentation |
Computes a user-defined percentile for the duration of spells (above/below) a given threshold, on an annual basis.
index.spellmax.annual.prcXXth(
ts,
dates,
threshold = 1,
threshold.type = "abs",
condition = c("GT", "GE", "LT", "LE"),
prob = 0.5
)
ts |
A vector containing the data |
dates |
A character (or |
threshold |
A float number defining the threshold considered. Default to 1 |
threshold.type |
Is the value of |
condition |
Inequality operator to be applied considering the given threshold.
|
prob |
A float number in the range [0,1] defining the probability of the quantile to be calculated.
Default to median ( |
The function requires the date information in order to ensure that spells are computed on consecutive records.
A float number with the corresponding percentile.
J. Bedia, J.M. Gutierrez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.