The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Need Help
Re: Need Help [message #8571 is a reply to message #8566] Tue, 17 November 2015 09:47 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3190
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


You can identify the youngest child (under five) who is living with the following lines, after you have opened a KR file:

keep if b5==1
sort v000 v001 v002 v003 bidx
egen sequence=seq(), by(v000 v001 v002 v003)
keep if sequence==1

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calculating median age at first sex
Next Topic: Trend analysis of dichotomous categorical outcome variable on stata
Goto Forum:
  


Current Time: Sat Nov 9 11:38:47 Coordinated Universal Time 2024