The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Nepal » Generating abortion table from NDHS2016
Generating abortion table from NDHS2016 [message #13826] Sat, 06 January 2018 11:25
sharad is currently offline  sharad
Messages: 1
Registered: March 2013
Location: nepal
Member
Hello DHS team,

I am analyzing NDHS2016 data to do further analysis on knowledge about legalization and place of abortion. For this I need to select all women whose pregnancy ended with abortion during last 5 years preceding the survey. I had conducted similar analysis using NDHS2011 data but it seems that the variables on termination of pregnancy have been changed in NDHS2016. I tried to run following code on Stata but the output of abortion case does not exactly match with Table9.31 Reason for most recent abortion in last 5 year. Can you please suggest if the following code is correct to come up with the number of abortion in last 5 year preceding the survey?

gen abortion = .
forvalues x = 1/9 {
replace abortion = 1 if sprego_0`x' == 4 & ((v008-s215c_0`x') < 60)
}
forvalues x = 10/24 {
replace abortion = 1 if sprego_`x' == 4 & ((v008-s215c_`x') < 60)
}

Thank you
Sharad
Previous Topic: New 'svyset' Command of 'Stata' for Nepal 2016 household dataset
Next Topic: Municipality/ward or VDC information in NDHS 2016
Goto Forum:
  


Current Time: Fri Mar 29 08:42:52 Coordinated Universal Time 2024