The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » MINIMUM ACCEPTABLE DIET_MINIMUM DIETARY DIVERSITY (NOT MATCHING WITH TABLE 11.7 IN DHS6 RWANDA REPORT)
Re: MINIMUM ACCEPTABLE DIET_MINIMUM DIETARY DIVERSITY [message #24037 is a reply to message #24034] Tue, 08 February 2022 08:25 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello Francois,

I am getting a match for mmf using the code share code on GitHub with 45.6% of children 6-23 months with mmf in the Rwanda 2019-20 DHS (page 190 of the final report).

I believe the problem is with how you select the correct children for the denominator. Please refer to the NT_main.do file: https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap11_NT/!NTmain.do . You need to run the code below before you run the NT_IYCF.do file to have the correct denominator. One problem for instance is that you should be using b19 for age in this survey and you used v008-b3 in your code. Please read the notes in the NT_main.do file.

Hope this helps you match the report.

Best,
Shireen Assaf
The DHS Program

**** child's age ****
gen age = v008 - b3

* to check if survey has b19, which should be used instead to compute age.
scalar b19_included=1
capture confirm numeric variable b19, exact
if _rc>0 {
* b19 is not present
scalar b19_included=0
}
if _rc==0 {
* b19 is present; check for values
summarize b19
if r(sd)==0 | r(sd)==. {
scalar b19_included=0
}
}

if b19_included==1 {
drop age
gen age=b19
}


* Note: The following do files select for the youngest child under 2 years living with the mother. Therefore some cases will be dropped.
* Selecting for youngest child under 24 months and living with mother
keep if age < 24 & b9 == 0
* if caseid is the same as the prior case, then not the last born
keep if _n == 1 | caseid != caseid[_n-1]

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sierra Leone 2019
Next Topic: Men BMI NFHS5 INDIA
Goto Forum:
  


Current Time: Tue Apr 16 13:12:58 Coordinated Universal Time 2024