Tail excess probability prediction method using an EQRN_iid object
Source:R/EQRN_seq.R
excess_probability.EQRN_seq.RdTail excess probability prediction method using an EQRN_iid object
Usage
# S3 method for class 'EQRN_seq'
excess_probability(object, ...)Arguments
- object
Fitted
"EQRN_seq"object.- ...
Arguments passed on to
EQRN_excess_probability_seqvalQuantile value(s) used to estimate the conditional excess probability or cdf.
XMatrix of covariates to predict the response's conditional excess probabilities.
YResponse variable vector corresponding to the rows of
X.intermediate_quantilesVector of intermediate conditional quantiles at level
fit_eqrn$interm_lvl.interm_lvlOptional, checks that
interm_lvl == fit_eqrn$interm_lvl.crop_predictionsWhether to crop out the fist
seq_lenobservations (which areNA) from the returned vectorbody_probaValue to use when the predicted conditional probability is below
interm_lvl(in which case it cannot be precisely assessed by the model). If"default"is given (the default),paste0(">",1-interm_lvl)is used ifproba_type=="excess", andpaste0("<",interm_lvl)is used ifproba_type=="cdf".proba_typeWhether to return the
"excess"probability overval(default) or the"cdf"atval.seq_lenData sequence length (i.e. number of past observations) used to predict each response quantile. By default, the training
fit_eqrn$seq_lenis used.device(optional) A
torch::torch_device(). Defaults todefault_device().
Value
Vector of probabilities (and possibly a few body_proba values if val is not large enough) of length nrow(X)
(or nrow(X)-seq_len if crop_predictions).
Details
See EQRN_excess_probability_seq() for more details.