Description Usage Arguments Details Value Author(s) References See Also Examples
msproj
is used to run multi-state population projections. The dimensions of the simulation must include age and gender, and may be expanded by any combination of education, region, and residence.
1 2 3 4 5 6 7 |
data |
a list containing the data needed to run the simulation. It has to include sublists containing the state space, the variable definitions, and (optionally) the flows of migration as defined by the |
patt |
the pattern of the model to be run. Used to create meaningful file names (especially when detailed output is generated). Defaults to NULL. |
country |
the name of the country (or more general, the highest level in the hierarchy of geographic units) the projections are done for. Used to annotate plots and tables that are created automatically when argument |
SSP |
the Shared Socioeconomic Pathway that forms the basis for the simulation assumptions concerning fertility, mortality, domestic migration, reclassification, and education. Defaults to SSP2 (middle of the road scenario). Not used at the moment. |
fert |
an optional vector specifying changes in the fertility assumptions for the whole simulation horizon. Should be |
mort |
an optional vector specifying absolute changes in comparison to the base mortality assumptions. In contrast to |
dom.mig |
an optional vector specifying relative changes in comparison to the base domestic migration assumptions, comparable to |
recl |
an optional vector specifying relative changes in comparison to the base reclassification assumptions, comparable to |
edu |
an optional vector specifying relative changes in comparison to the base educational transition assumptions, comparable to |
detail.out |
logical. Should detailed output be written to the "output_data" directory, which includes frequency tables and PDF's? Defaults to |
nSx |
the information used to compute the nSx's. Defaults to |
iPr |
the number of simulation periods. Must be smaller or equal to the number of periods in the simulation horizon. Defaults to 18 in compliance with the default simulation horizon (90 years = 18 five-year periods). |
reclass.model |
an R object of class "glm" containing the reclassification model. Needed to estimate the proportion of the rural population that is reclassified depending on the current population distribution between urban and rural areas. Defaults to NULL. |
reclass.period |
an integer number specifying the space of time for the reclassification data, i.e., the number of years it takes to observe the specified proportion of reclassification. Defaults to 5. |
mig.adj |
logical. Should the domestic migration rates be adjusted to account for the changing proportions of rural and urban population that occur when the simulation is run? Defaults to |
maxeapr5 |
a vector specifying the upper limits for the education transition rate to post-secondary attainment among upper-secondary attained. The total value is used if there is no differentiation between urban and rural areas in the model. In contrast, if residence is considered, separate values may be used for rural and urban areas. The possible values are bounded between 0 and 1. |
Although the users could generate the list containing the data needed to run the simulation themselves, it is advisable to use function fread.msproj
to read the data sets generated by state.space
since the successful operation of msproj
heavily depends on the structure of the data and the naming of the list elements.
A list with the following 11 components.
pop |
A contingency table in array respresentation of S3 class |
births |
A contingency table in array respresentation of S3 class |
deaths |
A contingency table in array respresentation of S3 class |
net.mig |
A contingency table in array respresentation of S3 class |
prop.pop |
A table containing the proportion of urban population for each year of the simulation period and (if included in the model) subdivided by region. |
prop.reclass |
A table containing the proportion of reclassified population (rural to urban) for each year of the simulation period and (if included in the model) subdivided by region. |
fert |
Relative changes of fertility in comparison to the SSP2 assumptions throughout the simulation horizon (see above for details). |
mort |
Absolute changes of mortality in comparison to the SSP2 assumptions (see above) throughout the simulation horizon (see above for details). |
dom.mig |
Relative changes of domestic migration in comparison to the SSP2 assumptions throughout the simulation horizon (see above for details). |
recl |
Relative changes of reclassification in comparison to the SSP2 assumptions throughout the simulation horizon (see above for details). |
edu |
Relative changes of educational transition in comparison to the SSP2 assumptions throughout the simulation horizon (see above for details). |
Marcus Wurzer, Samir K.C., & Markus Speringer
K.C., S., Speringer, M., & Wurzer, M. (2017). Population projection by age, sex, and educational attainment in rural and urban regions of 35 provinces of India, 2011-2101: Technical report on projecting the regionally explicit socioeconomic heterogeneity in India. Laxenburg: International Institute for Applied Systems Analysis.
state.space, fread.msproj, fantasy_india
1 2 3 4 5 6 7 8 9 | ## Using Indian data, but only for two states (IN.AN and IN.AP).
data(fantasy_india) #input data files
fantasy_india
##A full model using age, gender, region, residence and education
##is run. We use country name "FantasyIndia" since India only
##consists of two regions here:
res <- msproj(data = fantasy_india, reclass.period = 10,
country = "FantasyIndia")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.