maple_models: Generate a list of forecasting models.

Description Usage Arguments Value Examples

View source: R/maple_models.R

Description

Generate a list of forecasting models.

Usage

1
maple_models(fixed.prec = 0.001, gamma.shape = 1, gamma.rate = 0.001)

Arguments

fixed.prec

The precision on the fixed effects (common intercept and slope) normal priors.

gamma.shape

The shape parameter for the loggamma prior on the random effects. See ?INLA::inla.models for more details.

gamma.rate

The rate (inverse scale) parameter for the loggamma prior on the random effects. See ?INLA::inla.models for more details.

Value

A list of forecasting models. Each model is a list with the following entries

name

A short name to identify the model.

desc

A description of the model.

fml

(only for models fitted in INLA) The formula passed to INLA when running the model.

likelihood.weight.rate

(only for weighted likelihood models) The rate used when calculating the likelihood weights. See ?calc_likelihood_weights for more details.

num.pcs

(only for Lee-Carter models) The number of principal components.

Examples

1
2
maple_models()[c(1, 20)]
maple_models(fixed.prec = 1e-5, gamma.shape = .1, gamma.rate = .1)

vkontis/maple documentation built on July 15, 2019, 5:08 p.m.