pinball | R Documentation |
MultiQR
ObjectsThis function calculates the pinball score for each quantile in a
MultiQR
object. Optionally, results are produced by cross-validation fold
or covariate, 95% confidence intervals are estimated via bootstrap, and results
are plotted.
pinball(
qrdata,
realisations,
kfolds = NULL,
subsets = NULL,
breaks = 4,
bootstrap = NULL,
plot.it = T,
...
)
qrdata |
|
realisations |
Vector of realisations corresponding to rows of |
kfolds |
Optional vector of fold/test labels corresponding to rows of |
subsets |
Optional vector of covariates to bin data by.
Breaks between bins are the empirical quantiles of
|
breaks |
Either the number of quantiles to use to bin |
bootstrap |
Number of boostrap samples used to generate 95% confidence intervals. |
plot.it |
|
... |
Additional arguments passed to |
Missing values in realisations
are handled by na.rm=T
when
calculating average exceedence of a given quantile.
Quantile Score data and, if plot.it=T
, a plot.
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.