Predict semi-conditional extreme quantiles using peaks over threshold
Source:R/EVT_utils.R
predict_GPD_semiconditional.RdPredict 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
Yrepresenting the varying intermediate threshold on the train set.- interm_quantiles_test
Numerical vector of the same length as
Yrepresenting 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:
- predictions
matrix of dimension
length(interm_quantiles_test)timeslength(prob_lvls_predict)containing the estimated extreme quantile at levelsquantile, for eachinterm_quantiles_test,- pars
matrix of dimension
ntesttimes2containing the two GPD parameter MLEs, repeatedlength(interm_quantiles_test)times.