View source: R/index.spell.prcXXth.R
| index.spell.prcXXth | R Documentation | 
Computes a user-defined percentile for the duration of spells (above/below) a given threshold.
index.spell.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 absolute 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.
N. Neykov, S. Herrera, J. Bedia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.