Calculates childhood (neonatal, postneonatal, infant, child, and under-five) mortality rates using Demographic and Health Survey (DHS) microdata. The 'childhoodmortality' package was developed in accordance to the methodology outlined in the "DHS Guide to Statistics" (Rutstein 2006, < http://dhsprogram.com/pubs/pdf/DHSG1/Guide_to_DHS_Statistics_29Oct2012_DHSG1.pdf>) Specifically, the package uses a synthetic cohort life table approach, combining mortality probabilities for age segments with actual cohort mortality experience into more common age segments. Standard errors for mortality estimates are computed using the jackknife repeated replication method outlined in the "Estimates of Sampling Errors" appendix of DHS Final Reports (DHS 2004, < http://dhsprogram.com/pubs/pdf/FR175/19AppendixB.pdf>). This methodology controls for sample design.
Tools to calculate childhood mortality rates (neonatal, postneonatal, infant, child, under-five) using DHS data.
Install this package using the following command:
The childhoodmortality package offers a straightforward approach to computing childhood mortality rates. The package was developed in accordance with the “Methodology of DHS Mortality Rates Estimation” section of the DHS Guide to Statistics (Rutstein 2006:90-95). Specifically, the package uses a synthetic cohort life table approach, combining mortality probabilities for age segments with actual cohort mortality experience. The
childhoodmortality package defaults to the DHS Program’s practice of calculating mortality rates for five-year periods preceding the start date of the survey. By adhering to DHS Guidelines, estimates produced from the package can be compared to those published in the DHS Final Reports.
DHS surveys are conducted using a multi-stage stratified design, so standard sampling error formulae for simple random samples cannot be applied. For mortality rates, the DHS Program uses a jackknife repeated replication approach outlined in Appendix C of the DHS Final Reports DHS Final Reports (Rutstein 2006). This resampling technique systematically omits a single cluster from the dataset, replicates the mortality rate estimate, repeats this replication for every cluster, and then uses the mortality rates computed in the replications to calculate standard errors. This approach controls for sample design. The childhoodmortality package computes standard errors for the mortality rate type specified.
The three required arguments for the primary function childhoodmortality() are:
data: the data frame containing the IPUMS-DHS microdata (or DHS data with column names renamed to match IPUMS-DHS). Six variables, available in all IPUMS-DHS datasets, are necessary to compute child mortality:
KIDDOCCMC, reporting the date of birth of the child in century month code
KIDAGEDIEDIMP, reporting the age of the child at death in months
INTDATECMC, reporting interview date in century month code
YEAR, reporting the year the survey was fielded
PSU, reporting the primary sampling unit
PERWEIGHT, reporting the individual weights assigned to each woman in the survey
grouping: a categorical variable in data which the mortality rates will be disaggregated (e.g. IPUMS-DHS integrated geography variables, wealth quintile, race/ethnicity variables, etc.)
rate_type: the type of mortality rate to be computed:
Neonatal: probability of dying within 0-30 days of birth
Postneonatal: probability of dying within 30-365 days of birth
Infant: probability of dying within 0-365 days of birth
Child: probability of dying within 1-5 years of birth
Under five: probability of dying within 5 years of birth
The variable names must match the variable names in IPUMS-DHS. If data is obtained directly from the DHS program, column names must be renamed to match IPUMS-DHS. Head of example input data:
This dataframe includes the 6 variables necessary for computing childhoodmortality rates and includes the grouping variable
CHILDHOODMORTALITY. The package only needs to be installed once, but it must be reloaded every time a new session is started.
The childhoodmortality package in on the Comprehensive R Archive Network (CRAN). This makes installation straightforward:
Alternatively, install through github:
The call to the
childhoodmortality function is as follows:
underfive_mortality_rates <- childhoodmortality(data = model_ipums_dhs_dataset,grouping ="WEALTHQ",rate_type = "underfive")
childhoodmortality function returns a data frame containing::
Unique values of the categorical disaggregation variable (e.g. region)
Subpopulation estimates of the mortality rates specified in the
Standard errors for each subpopulation estimate
Lower and upper bounds of the 95% confidence interval (rate +/- 2 SEs)