predict.DoubleGap {MortalityGaps} | R Documentation |
Generic Predict Function for Class DoubleGap
Description
Predict DoubleGap model
Usage
## S3 method for class 'DoubleGap'
predict(object, h, iter = 500, ci = c(0.8, 0.95), ...)
Arguments
object |
An object of class |
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
Examples
# Complete examples are provided in help page of the DoubleGap function.
[Package MortalityGaps version 1.0.0 Index]