The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » merging IR file with KR (Csection )
Re: merging IR file with KR [message #16828 is a reply to message #16821] Thu, 07 March 2019 09:06 Go to previous messageGo to previous message
mmbah is currently offline  mmbah
Messages: 8
Registered: March 2019
Member
Dear MLUE,

Thank you very much for the wonder assistance which was very very helpful. I want to also calculated prenatal mortality and I used the following command.However, i am not sure I have calculated it right.

gen early_neonatal_deaths = 0
label var early_neonatal_deaths "earlyneo"
gen infant_deaths = 0

gen child_deaths = 0
label var child_deaths "child mortality"
label var infant_deaths "infant mortality"
* rename birth variables for use in forvalues loop
rename b*_0* b*_*

* Any early neonatal deaths, infant deaths, child deaths
forvalues b = 1/80 {
* early neonatal - days 0-6
replace early_neonatal_deaths = 1 if inrange(b6_`b',100,106)
}
gen wt = v005/1000000
replace wt = stillbirths*v005/1000000
replace wt = early_neonatal_deaths *v005/1000000
* perinatal mortality includes stillbirths and early neonatal deaths
gen perinatal_deaths = (stillbirths | early_neonatal_deaths)
label var perinatal_deaths "perinatal"

secondly I wants to run a logistic regression model to look at association between csection and perinatal mortality adjusting for demographics variables, morbidity, and ANC visits. could you help with graphs
Thank you very much for you kind assistance which is very well appreciated.

regards
Mamadou
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging all DHS recode files for one country in Stata
Next Topic: Merging IR and PR?
Goto Forum:
  


Current Time: Thu Apr 25 16:25:59 Coordinated Universal Time 2024