Tail excess probability prediction based on conditional GPD parameters
Source:R/EVT_utils.R
GPD_excess_probability.Rd
Tail excess probability prediction based on conditional GPD parameters
Usage
GPD_excess_probability(
val,
sigma,
xi,
interm_threshold,
threshold_p,
body_proba = "default",
proba_type = c("excess", "cdf")
)
Arguments
- val
Quantile value(s) used to estimate the conditional excess probability or cdf.
- sigma
Value(s) for the GPD scale parameter.
- xi
Value(s) for the GPD shape parameter.
- interm_threshold
Intermediate (conditional) quantile(s) at level
threshold_p
used as a (varying) threshold.- threshold_p
Probability level of the intermediate conditional quantiles
interm_threshold
.- body_proba
Value to use when the predicted conditional probability is below
threshold_p
(in which case it cannot be precisely assessed by the model). If"default"
is given (the default),paste0(">",1-threshold_p)
is used ifproba_type=="excess"
, andpaste0("<",threshold_p)
is used ifproba_type=="cdf"
.- proba_type
Whether to return the
"excess"
probability overval
(default) or the"cdf"
atval
.