| vwBaseYear {bayesPop} | R Documentation |
Datasets on Migration Base Year and Type, and Mortality and Fertility Age Patterns
Description
Datasets giving information on the baseyear and type of migration for each country. The 2012, 2015, 2017 and 2019 datasets also give information on country's specifics regarding mortality and fertility age patterns.
Usage
data(vwBaseYear2022)
data(vwBaseYear2019)
data(vwBaseYear2017)
data(vwBaseYear2015)
data(vwBaseYear2012)
data(vwBaseYear2010)
Format
A data frame containing the following variables:
country_codeNumerical Location Code (3-digit codes following ISO 3166-1 numeric standard) - see https://en.wikipedia.org/wiki/ISO_3166-1_numeric.
countryCountry name. Not used by the package.
isSmallUN internal code. Not used by the package.
ProjFirstYearThe base year of migration.
MigCodeType of migration. Zero means migration is evenly distributed over each time interval. Code 9 means migration is captured at the end of each interval.
WPPAIDSDummy indicating if the country has generalized HIV/AIDS epidemics.
AgeMortalityTypeType of mortality age pattern. Only relevant for countries with the entry “Model life tables”. In such a case, the
b_xLee-Carter parameter is not estimated from historical data. Instead is taken from the datasetMLTbxusing a pattern given in theAgeMortalityPatterncolumn.AgeMortalityPatternIf
AgeMortalityTypeis equal to “Model life tables”, this value determines whichb_xis selected from theMLTbxdataset. It must sorrespond to one of the rownames ofMLTbx, e.g. “CD East”, “CD West”, “UN Latin American”.AgeMortProjMethod1Method for projecting age-specific mortality rates. It is one of “LC” (modified Lee-Carter, uses function
mortcast), “PMD” (pattern mortality decline, uses functioncopmd), “modPMD” (modified pattern mortality decline, uses functioncopmd(... use.modpmd = TRUE)), “MLT” (model life tables, uses functionmlt), “LogQuad” (log quadratic method, uses functionlogquad), or “HIVmortmod” (HIV model life tables as implemented in the HIV.LifeTables package which can be installed from the PPgP/HIV.LifeTables GitHub repo).AgeMortProjMethod2If the mortality rates are to be projected via a blend of two methods (see
mortcast.blend), this column determines the second method. The options are the same as in the columnAgeMortProjMethod1.AgeMortProjPatternIf one of the
AgeMortProjMethodXcolums contains the “MLT” method, this column determines the type of the life table (see the argumenttypein themltfunction).AgeMortProjMethodWeightsIf the mortality rates are to be projected via a blend of two methods, this column determines the weights in the first and the last year of the projection, respectively. It should be given as an R vector, e.g. “c(1, 0.5)” (see the argument
weightsinmortcast.blend).AgeMortProjAdjSRCode determining how the “PMD” method should be adjusted if it's used. 0 means no adjustment, 1 means the argument
sexratio.adjustincopmdis set toTRUE, and code 3 means that the argumentadjust.sr.if.neededincopmdis set toTRUE.LatestAgeMortalityPattern,LatestAgeMortalityPattern1Indicator
nfor how many latest time periods should be used to compute thea_xLee-Carter and modPMD parameter. Ifnis zero, all time periods are used. Ifnis one, only the latest time period is used. Ifnis negative, the latestntime periods are excluded. This can have also a form of vector of size 2, where the first element (must be negative) determines how many latest time periods should be excluded, while the second element (must be positive) determines how many latest time periods to include after the exclusion. E.g. “c(-2, 3)” would mean exclude 2 time periods and use the following 3 time points. If theLatestAgeMortalityPattern1column is present, it should contain values related to an annual simulation (1x1) while theLatestAgeMortalityPatterncolumn relates to a 5x5 simulation.SmoothLatestAgeMortalityPatternIf
LatestAgeMortalityPatternis 1, this column indicates if thea_xshould be smoothed.SmoothDFLatestAgeMortalityPattern,SmoothDFLatestAgeMortalityPattern1Degree of freedom for smoothing
a_x. By default (value 0) a half of the number of age groups is taken. If theSmoothDFLatestAgeMortalityPattern1column is present, it should contain values related to a 1x1 simulation while theSmoothDFLatestAgeMortalityPatterncolumn relates to a 5x5 simulation.PasfrNormType of norm for computing age-specific fertility pattern to which the country belongs to. Currently only “GlobalNorm” is used.
PasfrGlobalNorm, PasfrFarEastAsianNorm, PasfrSouthAsianNormDummies indicating which country to include to compute the specific norms.
Details
There is one record for each country. See Sevcikova et al (2015) on how information from the various columns is used for projections.
Source
Data provided by the United Nations Population Division.
References
H. Sevcikova, N. Li, V. Kantorova, P. Gerland and A. E. Raftery (2015). Age-Specific Mortality and Fertility Rates for Probabilistic Population Projections. arXiv:1503.05215. https://arxiv.org/abs/1503.05215
Examples
data(vwBaseYear2019)
str(vwBaseYear2019)