Predict semi-conditional extreme quantiles using peaks over threshold
Source:R/EVT_utils.R
predict_GPD_semiconditional.Rd
Predict semi-conditional extreme quantiles using peaks over threshold
Usage
predict_GPD_semiconditional(
Y,
interm_lvl,
thresh_quantiles,
interm_quantiles_test = thresh_quantiles,
prob_lvls_predict = c(0.99)
)
Arguments
- Y
Vector of ("training") observations.
- interm_lvl
Probability level at which the empirical quantile should be used as the intermediate threshold.
- thresh_quantiles
Numerical vector of the same length as
Y
representing the varying intermediate threshold on the train set.- interm_quantiles_test
Numerical vector of the same length as
Y
representing the varying intermediate threshold used for prediction on the test set.- prob_lvls_predict
Probability levels at which to predict the extreme semi-conditional quantiles.
Value
Named list containing:
predictionsmatrix of dimension
length(interm_quantiles_test)
timeslength(prob_lvls_predict)
containing the estimated extreme quantile at levelsquantile
, for eachinterm_quantiles_test
,parsmatrix of dimension
ntest
times2
containing the two GPD parameter MLEs, repeatedlength(interm_quantiles_test)
times.