mortality_projection {popstudy}R Documentation

mortality_projection

Description

Forecasting mortality rates.

Usage

mortality_projection(
  mortality_rates_path,
  total_population_path,
  omega_age,
  horizon,
  first_year_projection,
  ...
)

Arguments

mortality_rates_path

character. Path to Mortality rates in a .txt file.

total_population_path

character. Path to Populations in a .txt file.

omega_age

numeric. Maximum age.

horizon

numeric. The forecast horizon.

first_year_projection

numeric. Year for the base population.

...

additional arguments to be passed to forecast::Arima().

Value

mortality_projection returns an object of class fmforecast with with both female and male mortality projections and the components of demography::forecast.lca().

Author(s)

Cesar Gamboa-Sanabria

Examples



## Not run: 
library(dplyr)

data(CR_mortality_rates_1950_2011)

#CR_mortality_rates_1950_2011 %>%
#write.table(.,
#file = "CR_mortality_rates_1950_2011.txt",
#sep = "\t",
#row.names = FALSE,
#col.names = TRUE,
#quote = FALSE)


data(CR_populations_1950_2011)

#CR_populations_1950_2011 %>%
#write.table(.,
#file = "CR_populations_1950_2011.txt",
#sep = "\t",
#row.names = FALSE,
#col.names = TRUE,
#quote = FALSE)

#result <- mortality_projection(mortality_rates_path = "CR_mortality_rates_1950_2011.txt",
#total_population_path = "CR_populations_1950_2011.txt",
#omega_age = 115, first_year_projection = 2011, horizon = 2150)


## End(Not run)



[Package popstudy version 1.0.1 Index]