///REPLICATING TABLE 9.5///Place of Delivery ///VARIABLES GENERATION/// cd " C:\Users\Ornia\Downloads\BD_2014_DHS STATA\BDBR72DT" use " BDBR72FL", clear set more off ******************************************************************************** **WEIGHT VARIABLE gen weight = v005/1000000 ******************************************************************************** ******************************************************************************** ** SURVEY SET gen psu = v021 gen strata = v023 svyset psu [pw = weight], strata(strata) vce(linearized) *svydes ******************************************************************************** ** BIRTHS IN THE THREE YEARS PRECEDING THE SURVEY keep if v238>0 & v238!=. ******************************************************************************** ******************************************************************************** rename v013 age rename v106 education rename v190 wealth rename v025 residence rename v024 region ******************************************************************************** **PLACE OF DELIVERY cap drop DHS_delivery recode m15 (21/26=1 "Public sector")(31/36=2 "Private sector") (41/46=3 "NGO")(11/12=4 "Home") (96=5 "Other"), gen(DHS_delivery) label var DHS_delivery "place of delivery as in DHS eport" label val DHS_delivery DHS_delivery ******************************************************************************** **DELIVERY IN HEALTH FACILITY cap drop facility_delivery recode m15 (21/46=1 "Facility-based deliveries") (11/12 96=0 "Non-facility deliverie"), gen(facility_delivery) label var facility_delivery "Facility-based deliveries" label val facility_delivery facility_delivery ******************************************************************************** ** ASSISTED BY MEDICALLY TRAINED PROVIDER DURING DELIVERY gen skilled_birth = 0 label define skilled_birth 0"Unskilled" 1"Skilled" label var skilled_birth "Birth delivered by skilled birth attendant" label val skilled_birth skilled_birth foreach xvar of varlist m3a m3b m3c m3d { replace skilled_birth=1 if `xvar'==1 } ******************************************************************************** ******************************************************************************** ** Drop keep if DHS_delivery!=. ******************************************************************************** * MOTHER’S AGE AT BIRTH cap drop agebirth gen agebirth=(b3-v011)/12 cap drop age_at_birth recode agebirth (min/19.91667=1 "<20") (20/34.91667=2 "20-34") (35/max=3 "35-49"), gen(age_at_birth) label var age_at_birth "Mother's age at birth" label val age_at_birth age_at_birth ***************************************************************************** * BIRTH ORDER gen birth_order1 = bord replace birth_order1 = bord-1 if b0 == 2 replace birth_order1 = bord-2 if b0 == 3 recode birth_order1 (1=1 "1") (2/3=2 "2-3") (4/5=3 "4-5") (6/20=4 "6+"), gen(birth_order) label var birth_order "Birth order" label values birth_order birth_order ***************************************************************************** * EDUCATIONAL ATTAINMENT cap drop educ_attainment recode v149 (0=0 "No education") (1=1 "Primary incomplete") (2=2 "Primary complete") (3=3 "Secondary incomplete")(4/5=4 "Secondary complete or higher"), gen(educ_attainment) label var educ_attainment "Educational attainment" label val educ_attainment educ_attainment ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ***************************************************************************** ** REPLICATING TABLE 9.5 svy: tab age_at_birth DHS_delivery, percent format(%4.1f) row miss svy: tab birth_order DHS_delivery, percent format(%4.1f) row miss svy: tab residence DHS_delivery, percent format(%4.1f) row miss svy: tab region DHS_delivery, percent format(%4.1f) row miss svy: tab educ_attainment DHS_delivery, percent format(%4.1f) row miss svy: tab wealth DHS_delivery, percent format(%4.1f) row miss svy: tab DHS_delivery, percent format(%4.1f) svy: tab age_at_birth facility_delivery, percent format(%4.1f) row miss svy: tab birth_order facility_delivery, percent format(%4.1f) row miss svy: tab residence facility_delivery, percent format(%4.1f) row miss svy: tab region facility_delivery, percent format(%4.1f) row miss svy: tab educ_attainment facility_delivery, percent format(%4.1f) row miss svy: tab wealth facility_delivery, percent format(%4.1f) row miss svy: tab facility_delivery, percent format(%4.1f) ******************************************************************************** ** ** REPLICATING TABLE 9.8 svy: tab age_at_birth skilled_birth, percent format(%4.1f) row miss svy: tab birth_order skilled_birth, percent format(%4.1f) row miss svy: tab residence skilled_birth, percent format(%4.1f) row miss svy: tab region skilled_birth, percent format(%4.1f) row miss svy: tab educ_attainment skilled_birth, percent format(%4.1f) row miss svy: tab wealth skilled_birth, percent format(%4.1f) row miss svy: tab skilled_birth, percent format(%4.1f)