qreg_mrq | R Documentation |
This function fits multiple conditional linear quantile regression models, optionally to the residuals of a user-specified deterministic forecast with facilities for cross-validation.
qreg_mrq(
data,
formula,
quantiles = c(0.25, 0.5, 0.75),
offset = NULL,
cv_folds = NULL,
exclude_train = NULL,
sort = T,
sort_limits = NULL,
...
)
data |
A |
quantiles |
The quantiles to fit models for. |
offset |
The column name in |
cv_folds |
Control for cross-validation with various options, either:
|
exclude_train |
A column name in |
sort |
|
sort_limits |
|
... |
Additional arguments passed to |
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.
Returns a list
containing predictive quantiles (in a MultiQR
object) and rq
models.
Jethro Browell, jethro.browell@glasgow.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.