inst/doc/Manual.R

## ------------------------------------------------------------------------
library(MortalityGaps)

## ------------------------------------------------------------------------
# Collection of life expectancies for female populations
exF <- MortalityGaps.data$exF
# Life expectancy for male populations
exM <- MortalityGaps.data$exM

head(exF)

## ------------------------------------------------------------------------
M0 <- DoubleGap(DF = exF,
                DM = exM,
                age = 0,
                country = "AUS",
                years = 1950:2014)
M0

## ------------------------------------------------------------------------
summary(M0)

## ------------------------------------------------------------------------
P0 <- predict(M0, h = 36)

## ---- fig.asp = 0.9------------------------------------------------------
plot(P0)

Try the MortalityGaps package in your browser

Any scripts or data that you put into this service are public.

MortalityGaps documentation built on May 2, 2019, 10:22 a.m.