Description Usage Arguments Details Author(s) References
Get Measures of Forecast Accuracy
1 2 | computeAccuracy(u, u.hat, b, measures = NULL, xa = NULL, ya = NULL,
na.rm = TRUE)
|
u |
Validation dataset. |
u.hat |
Out-sample forecast data. |
b |
Benchmark forecast data. Usually a naive or Random-Walk w drift forecast. |
measures |
What accuracy measure to compute? Various alternatives are available,
If |
xa |
Ages to be considered in model accuracy evaluation. It can be used
to calculate the measures on a subset of the results. If |
ya |
Years to be considered in accuracy computation. Default: |
na.rm |
A logical value indicating whether NA values should be stripped before the computation proceeds. |
See \insertCitehyndman2006;textualMortalityForecast for a comprehensive discussion of the accuracy measures.
Marius D. Pascariu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.