Description Usage Arguments Value Examples
Estimate calibration given forecasts and corresponding outcomes
1 2 3 4 5 6 7 8 | compute_calibration(
forecast,
outcome,
method = c("smoothing", "binning"),
CI = NULL,
binwidth = NULL,
...
)
|
forecast |
Vector of probability forecasts. |
outcome |
Vector of observations (0 or 1). |
method |
Method used to estimate calibration, either "smoothing" or "binning". |
CI |
Confidence level (e.g. 0.95). CI not computed if NULL (CI can be expensive to compute for LOWESS). |
binwidth |
Binwidth when calibration is estimated by binning. If NULL, automatic bin width selection with 'Sturges' method. |
... |
Arguments of |
Dataframe with columns Forecast
(bins), Frequency
(frequency of outcomes in the bin),
Lower
(lower bound of the CI) and Upper
(upper bound of the CI).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.