valloss | R Documentation |
We consider four different model combination approaches: Simple Model Averaging, Bayesian Model Averaging, Model Confidence Set, and Stacked Regression Ensemble. These methods vary from each other depending on how they use the historical data to choose the combining weights or the models to be combined.
valloss( models, data = NULL, Dxt = NULL, Ext = NULL, ages.fit = NULL, years.fit = NULL, ages = NULL, years = NULL, holdout = NULL, h = NULL )
models |
are the specified models to be combined. |
data |
an optional object of type StMoMoData containing information on deaths and exposures to be used for training the model. This is typically created with function If this is not provided then the training data is taken from arguments, |
Dxt |
optional matrix of deaths data. |
Ext |
optional matrix of observed exposures of the same
dimension of |
ages.fit |
optional vector of ages to include in the
training. Must be a subset of |
years.fit |
optional vector of years to include in the
training. Must be a subset of |
ages |
optional vector of ages corresponding to rows of
|
years |
optional vector of years corresponding to rows of
|
h |
number of years for forecasting horizon. |
Simple Model Averaging assigns equal weights to all the models.
Bayesian Model Averaging estimates the weights using the posterior model probabilities.
Model Confidence Set chooses the subset of superior mortality models to combine where each model is assigned equal weight
Stacked Regression Ensemble combines point forecasts from multiple base learners using the weights that optimize a cross-validation criterion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.