cokannisto: Coherent Kannisto Method

Description Usage Arguments Details Value References See Also Examples

View source: R/kannisto.R

Description

Extrapolate given mortality rates into higher ages using the Coherent Kannisto method as described in Sevcikova et al. (2016).

Usage

1
2
cokannisto(mxM, mxF, est.ages = seq(80, 95, by = 5), proj.ages = seq(100,
  130, by = 5))

Arguments

mxM

A vector or matrix of male mortality rates. If it is a matrix, rows correspond to age groups with rownames identifying the corresponding age as integers. By default five-years age groups are assigned to rows if rownames are not given.

mxF

A vector or matrix of female mortality rates. Its length or dimension should be the same mxM.

est.ages

A vector of integers identifying the ages to be used for estimation. It should be a subset of rownames of mxM.

proj.ages

A vector of integers identifying the age groups for which mortality rates are to be projected.

Details

The function first estimates the coherent Kannisto parameters by passing mortality rates for age groups est.ages into the cokannisto.estimate function. The estimated parameters are then passed to the projection function kannisto.predict to extrapolate into ages proj.ages. Lastly, the input mortality objects are extended by results for the extrapolated ages. If proj.ages contains age groups that are included in mxM and mxF, values for those age groups are overwritten.

Value

A list of two vectors or matrices (for male and female) containing the input motality objects extended by the extrapolated age groups.

References

Sevcikova H., Li N., Kantorova V., Gerland P., Raftery A.E. (2016). Age-Specific Mortality and Fertility Rates for Probabilistic Population Projections. In: Schoen R. (eds) Dynamic Demographic Analysis. The Springer Series on Demographic Methods and Population Analysis, vol 39. Springer, Cham

See Also

cokannisto.estimate, kannisto.predict

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(mxM, mxF, package = "wpp2017")
country <- "South Africa"
mxm <- subset(mxM, name == country)[,-(1:3)]
mxf <- subset(mxF, name == country)[,-(1:3)]
rownames(mxm) <- rownames(mxf) <- c(0,1, seq(5, 100, by=5))
mxnew <- cokannisto(mxm, mxf)
ages <- as.integer(rownames(mxnew$male))
plot(ages, mxnew$male[,"2095-2100"], type="l", log="y", 
    xlab="age", ylab="mx", col="blue", main=country)
lines(ages, mxnew$female[,"2095-2100"], col="red")
lines(ages, mxnew$male[,"2010-2015"], lty=2, col="blue")
lines(ages, mxnew$female[,"2010-2015"], lty=2, col="red")
legend("bottomright", legend=c("male 2010-2015", "female 2010-2015",
    "male 2095-2100", "female 2095-2100"), bty="n",
    col=rep(c("blue", "red"),2), lty=c(2,2,1,1))

MortCast documentation built on Sept. 22, 2018, 9:03 a.m.