netmigration_projection {popstudy}R Documentation

netmigration_projection

Description

Forecasting net migration.

Usage

netmigration_projection(
  mortality_rates_path,
  TFR_path,
  total_population_path,
  WRA_path,
  omega_age,
  horizon,
  first_year_projection
)

Arguments

mortality_rates_path

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

TFR_path

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

total_population_path

character. Path to Populations in a .txt file.

WRA_path

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

omega_age

numeric. Maximum age.

horizon

numeric. The forecast horizon.

first_year_projection

numeric. Year for the base population.

Value

netmigration_projection returns an object of class fmforecast with the forecast netmigration models and the components of demography::forecast.fdmpr().

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)

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 <- netmigration_projection(mortality_rates_path = "CR_mortality_rates_1950_2011.txt",
#total_population_path = "CR_populations_1950_2011.txt",
#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)


## End(Not run)



[Package popstudy version 1.0.1 Index]