View source: R/netmigration_projection.R
netmigration_projection | R Documentation |
Forecasting net migration.
netmigration_projection(
mortality_rates_path,
TFR_path,
total_population_path,
WRA_path,
omega_age,
horizon,
first_year_projection
)
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. |
netmigration_projection
returns an object of class fmforecast
with the forecast netmigration models and the components of demography::forecast.fdmpr()
.
Cesar Gamboa-Sanabria
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.