predict.DoubleGap: Generic Predict Function for Class 'DoubleGap'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DGM_predict.R

Description

Predict DoubleGap model

Usage

1
2
3
## S3 method for class 'DoubleGap'
predict(object, h, iter = 500, ci = c(0.8, 0.95),
  ...)

Arguments

object

An object of class DoubleGap.

h

Number of periods for forecasting.

iter

Number of iterations. Default: 500

ci

Confidence levels. Default: c(0.8, 0.95)

...

Additional arguments affecting the predictions produced.

Value

A list containing predicted value of best-practice life expectancy, best-practice gap, sex gap, and forecast life expectancy for females and males (together with prediction intervals).

Author(s)

Marius D. Pascariu

See Also

DoubleGap

Examples

1
# Complete examples are provided in help page of the DoubleGap function.

mpascariu/MortalityGaps documentation built on May 7, 2021, 1:45 p.m.