The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Perinatal Mortality
Re: Perinatal Mortality [message #20393 is a reply to message #20338] Tue, 27 October 2020 12:18 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Dear Hassen,

We just recently uploaded the code for the FGM indicators on GitHub. You can find it here: https://github.com/DHSProgram/DHS-Indicators-Stata/tree/mast er/Chap18_FG
Also you can read more about these indicators here: https://www.dhsprogram.com/Data/Guide-to-DHS-Statistics/inde x.htm#t=18_Female_Genital_Cutting.htm
The FGM indicators us the IR file.

As mentioned previously, before attempting to run any code from our GitHub code share site, please read the readme file and the main file for the chapter.

Perinatal mortality is a rate and you cannot create a dichotomous variable from this.

For your question on community level variables, there are many ways to do this. One easy way is to create a binary variable of the indicator you want at the community level and then take the mean at the cluster level. For example in the code below I create a binary variable for education that is secondary or more. Then I create a cluster or community level variable educlus as shown.

recode v106 (0/1=0 "noedu/primary") (2/3=1 "secondary+") (8/9=.), gen(edu)
bysort v001: egen educlus=mean(edu)

Hope this helps.

Best,
Shireen Assaf
The DHS Program
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SPSS to STATA commands
Next Topic: Sibling Data Set
Goto Forum:
  


Current Time: Fri Apr 19 19:40:18 Coordinated Universal Time 2024