The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Nepal » Nutritional status of women
Re: Nutritional status of women [message #24714 is a reply to message #24701] Mon, 27 June 2022 15:23 Go to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 891
Registered: April 2022
Senior Member
The main difference between the two approaches is that the second one explicitly drops cases that are outside a plausible range from 1200 to 6000. The first one does not drop those cases. Also, I the second approach assigns an NA code (".") to the excluded values, whereas the first approach uses "keep if", which may have worked ok here but is risky because it drops cases and changes the file.

When comparing two alternative recodes, or even when validating one recode, I recommend a cross tabulation that includes NA cases. Here, for example, you can do "tab BMI bmic,m" to see the difference. The second recode (bmic) is correct because it drops cases outside the plausible range.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DHS 1996, 2001, 2006 village names
Next Topic: Replicating some variables
Goto Forum:
  


Current Time: Wed Nov 27 01:48:07 Coordinated Universal Time 2024