tails_ev | R Documentation |
This function fits semi-parametric models for extreme value distributions
using evgam
with facilities for cross-validation.
tails_ev(
data,
mqr_data,
tail_starts = range(as.numeric(gsub("q", "", names(mqr_data))), na.rm = T),
formula,
formula_r = formula,
CVfolds = NULL,
BadData_col = NULL,
evgam_family = "gpd",
print_summary = F,
return_models = F
)
data |
The modelling table as a |
mqr_data |
A |
tail_starts |
The upper and lower probability levels beyond which the
tail distribution is used. E.g. |
formula_r |
as |
CVfolds |
Control for cross-validation if not supplied in |
BadData_col |
Name of a boolean column in |
evgam_family |
specifies distribution, see |
print_summary |
If |
return_models |
If |
formala |
A |
The returned predictive quantiles are those produced out-of-sample for each cross-validation fold (using models trained on the remaining folds but not "Test" data). Predictive quantiles corresponding to "Test" data are produced using models trained on all non-test data.
If 'return_models' is TRUE
, then returns a list containing a list of tail models, and data
with
additional columns containing the predicted parameters of the specified tail distribution. Otherwise, just returns data
.
Jethro Browell, jethro.browell@strath.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.