Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/calculateCoverage.R
Calculates estimates of actual coverage probabilities for the given nominal coverage probability.
1 | calculateCoverage(af, pi, conf.level = 0.95)
|
af |
dataframe containing forecast data formatted using the Actual and
Forecast Table Schema (AFTS), use |
pi |
nominal coverage probability (confidence level for the prediction interval to be assessed). |
conf.level |
confidence level for coverage probability estimates, default 0.95. |
Calculates coverage probability estimates for each method and each horizon contained in af
.
Coverage probability estimate is the percentage of cases when prediction interval contained actual.
Confidence limits for the actual coverage probability are obtained using binom.test function (two.sided=TRUE).
To get a coverage probability graph, use plotCoverage()
.
dataframe with coverage probability estimates for each method and each horizon
contained in af
.
Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.
1 2 | af <- createAFTS(example1_ts, example1_fc)
calculateCoverage(af, 90)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.