The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » replicating children 6-23 month
Re: replicating children 6-23 month [message #15470 is a reply to message #15005] Thu, 26 July 2018 23:56 Go to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
Try the following:
* keep if under 24 months and living with mother
keep if b19 < 24 & b9 == 0
* and keep the last born of those. 
* 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
Previous Topic: Conindex results not matching.
Next Topic: Calculation age
Goto Forum:
  


Current Time: Sun Dec 22 19:14:35 Coordinated Universal Time 2024