The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Stunting Discrepancies with SL Reports (Calculated stunting prevalence rates differ from those in the Sierra Leone 2008 report)
Re: Stunting Discrepancies with SL Reports [message #23958 is a reply to message #23955] Fri, 21 January 2022 08:17 Go to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello Amanda,

I am glad you were able to locate your error.

The code I provided however does work. I just ran it for another survey to double check and match the report. I use replace_with_na function by first identifying children above or equal 9996 as 99 and then replace 99 as missing. Using ifelse is another way of course.

Thank you.

Best,
Shireen
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IYCF indicators
Next Topic: MDD-W for Rwanda
Goto Forum:
  


Current Time: Sun Jun 23 10:00:25 Coordinated Universal Time 2024