Description Usage Arguments Details Value See Also Examples
Evaluate the the quantile function of IDR predictions or of unprocessed
forecasts in a data.frame
.
1 2 3 4 5 6 7 |
predictions |
either an object of class |
quantiles |
numeric vector of desired quantiles. |
The quantiles are defined as lower quantiles, that is,
q(u) = inf(x: cdf(x) >= u).
A matrix of forecasts for the desired quantiles, one column per quantile.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data("rain")
## Postprocess HRES forecast using data of 3 years
X <- rain[1:(3 * 365), "HRES", drop = FALSE]
y <- rain[1:(3 * 365), "obs"]
fit <- idr(y = y, X = X)
## Compute 95%-quantile forecast given that the HRES forecast is
## 2.5 mm, 5 mm or 10 mm
predictions <- predict(fit, data = data.frame(HRES = c(2.5, 5, 10)))
qpred(predictions, quantiles = 0.95)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.