predict.MortalityLaw: Predict function for MortalityLaw

Description Usage Arguments Author(s) See Also Examples

View source: R/MortalityLaw_S3.R

Description

Predict function for MortalityLaw

Usage

1
2
## S3 method for class 'MortalityLaw'
predict(object, x, ...)

Arguments

object

An object of class "MortalityLaw"

x

Vector of ages to be considered in prediction

...

Additional arguments affecting the predictions produced.

Author(s)

Marius D. Pascariu

See Also

MortalityLaw

Examples

1
2
3
4
5
6
7
8
9
# Extrapolate old-age mortality with the Kannisto model
# Fit ages 80-94 and extrapolate up to 120.

Mx <- ahmd$mx[paste(80:94), "1950"]
M1 <- MortalityLaw(x = 80:94, mx  = Mx, law = 'kannisto')
fitted(M1)
predict(M1, x = 80:120)

# See more examples in MortalityLaw function help page.

MortalityLaws documentation built on Sept. 16, 2020, 5:08 p.m.