Description Usage Arguments Author(s) See Also Examples
View source: R/do_BBackTesting.R
Perform Out-of-Sample Testing of Mortality Forecasts Over Multiple Time Periods
1 2 3 |
data |
A data.frame or a matrix containing mortality data
with ages |
data.B |
A data.frame or a matrix containing mortality data for
the benchmark population. This dataset is needed only in the coherent
mortality models (e.g. |
x |
Numerical vector indicating the ages in input |
y |
Numerical vector indicating the years in input |
data.in |
Specify the type of input |
models |
One or several mortality models to be estimated. The following options are available:
|
strategy |
Fitting-Forecasting strategy. Format: numerical vector.
The strategy |
level |
Significance level of the confidence interval. |
jumpchoice |
Method used for computation of jumpchoice.
Possibilities: |
verbose |
A logical value. Set |
... |
Arguments to be passed to or from other methods. |
Marius D. Pascariu
do.BackTesting
evalAccuracy.BBackTesting
evalRobustness.BBackTesting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | x <- 0:95
y <- 1970:2016
dx <- HMD_male$dx$GBRTENW[paste(x), paste(y)]
M <- c("MRWD", "LeeCarter", "HyndmanUllah",
"Oeppen", "MEM4", "MEM5")
BB <- do.BBackTesting(data = dx, x = x, y = y,
data.in = "dx",
models = M,
strategy = c(20, 20, 1))
A <- evalAccuracy(BB, data.out = "ex")
A
R <- do.Ranking(A)
R
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.