TFR_projection {popstudy}R Documentation

TFR_projection

Description

Forecasting total fertility rates.

Usage

TFR_projection(TFR_path, WRA_path, horizon, first_year_projection, ...)

Arguments

TFR_path

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

WRA_path

character. Path to Women of Reproductive Age in a .txt file.

horizon

numeric. The forecast horizon.

first_year_projection

numeric. Year for the base population.

...

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

Value

TFR_projection returns an object of class fmforecast with the forecast fertility rates and the components of demography::forecast.fdm().

Author(s)

Cesar Gamboa-Sanabria

Examples




library(dplyr)

data(CR_fertility_rates_1950_2011)

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


data(CR_women_childbearing_age_1950_2011)

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

#result <- TFR_projection(TFR_path = "CR_fertility_rates_1950_2011.txt",
#WRA_path = "CR_women_childbearing_age_1950_2011.txt",
#omega_age = 115, first_year_projection = 2011, horizon = 2150)





[Package popstudy version 1.0.1 Index]