The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » 2017 Ghana Maternity and Health Survey abortion calculation
Re: 2017 Ghana Maternity and Health Survey abortion calculation [message #19306 is a reply to message #19269] Tue, 26 May 2020 08:19 Go to previous messageGo to previous message
lmallick is currently offline  lmallick
Messages: 22
Registered: June 2019
Member
Dear user, to follow up, you should use the BQ file.

Here are the steps to match table 6.1:

*generate weight
gen wt = qweight/1000000

*time in months since birth/termination using cdc
gen pregend = int((qintcd - q215cd)/ 30.4375)

*all pregnancies that occured in the last 5 years
gen pregall5yr = 1 if pregend <60

*tabulate pregnancy outcome among pregnancies in the last 5 years
ta q212c if pregall5yr ==1 [iw=wt]

Thank you,
Lindsay Mallick
Lead Analyst
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multilevel analysis-Pakistan DHS
Next Topic: Afghan 2015 DHS
Goto Forum:
  


Current Time: Sun Apr 28 16:05:09 Coordinated Universal Time 2024