cambodia {u5mr} | R Documentation |
Aggregated summary birth histories derived from microdata
Description
Fake summary data used to demonstrate the application of Cohort-derived and Period-derived methods developed by Rajaratnam et al in 2010.
Usage
data(cambodia)
Format
A data frame
Details
## codes used to derive the dataset `cambodia` ## install.packages("tidyverse", dependencies = TRUE) ## install.packages("devtools", dependencies = TRUE) ## devtools::install_github("myominnoo/mStats") library(tidyverse) library(mStats) data(microdata) cambodia <- microdata %>% filter(sex == 2) %>% filter(age >= 15 & age < 50) %>% egen(age, seq(15, 45, 5), new_var = "agegroup") %>% generate(n, 1 * wtper) %>% replace(ceb, ceb * wtper) %>% replace(cd, cd * wtper) %>% group_by(iso3, svdate, agegroup) %>% summarise(women = sum(n), child_born = sum(ceb), child_dead = sum(cd)) %>% rename(agegrp = agegroup) %>% data.frame()
Source
References
Rajaratnam JK, Tran LN, Lopez AD, Murray CJL (2010) Measuring Under-Five Mortality: Validation of New Low-Cost Methods. PLOS Medicine 7(4): e1000253. (doi: 10.1371/journal.pmed.100025310.1371/journal.pmed.1000253)
[Package u5mr version 0.1.1 Index]