View source: R/scoreForecast.R
| coverage | R Documentation |
Empirical coverage of a prediction interval
coverage(observed, lo, hi)
observed |
numeric vector of realized values |
lo, hi |
numeric vectors giving the lower/upper interval bounds |
the fraction of observations falling within [lo, hi]
coverage(c(5, 15, 25), c(0, 10, 20), c(10, 20, 30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.