The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Ethiopia » MDD and Sample size mismatch
Re: MDD and Sample size mismatch [message #23840 is a reply to message #23839] Mon, 13 December 2021 09:18 Go to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member

Hello,

It appears this survey included a special module for this indicator. The DHS Program GitHub site only has code for indicators listed in the Guide to DHS Statistics.

For these indicators, you would need to use the IR file and check the variables on foods consumed by the mother (check des v47*). For instance for the tea indicator you would do the following:

gen age=b19_01
gen wt=v005/1000000
tab v471b if age<24 [iw=wt]

You may need to group some variables for to create the other food groups in the table. After you have coded each food group as described in footnote 2 of the table, then you would do the following:

* add the food groups
egen foodsum = rsum(group1 group2 group3 group4 group5 group6 group7 group8 group9 group10)
recode foodsum (1/4 .=0 "No") (5/10=1 "Yes"), gen(mdd)
replace mdd=. if age>=24

Thank you.
Best,
Shireen
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child Poverty Analysis for Ethiopia
Next Topic: Ethnicities 2019
Goto Forum:
  


Current Time: Thu Apr 25 18:33:16 Coordinated Universal Time 2024