The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Reshaping Kenya's DHS dataset (Reshaping Kenya's DHS dataset - need to know how to reshape and form unique ID's)
Reshaping Kenya's DHS dataset [message #27894] Wed, 18 October 2023 02:55 Go to previous message
Ritapriya Bandyopadhyay is currently offline  Ritapriya Bandyopadhyay
Messages: 18
Registered: October 2023
Member
Hi, I am trying to reshape the Kenya DHS data.
Now, I believe the data is in wide format, so hv104_01-hv104_24 - represent the sex of each household member within a household? How to go forward with the reshaping?

Also, I want to create a unique household ID and a unique individual ID. The problem is, when I create a unique individual ID before reshaping to long - all individuals in the household gets the same unique ID, hence should I do this after reshaping to long?

Would greatly appreciate your help

Best
Ritapriya
  • Attachment: Capture.PNG
    (Size: 64.19KB, Downloaded 140 times)
  • Attachment: Capture.PNG
    (Size: 55.24KB, Downloaded 139 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GMHS and Weighting
Next Topic: Tabulating cluster and outcome variable
Goto Forum:
  


Current Time: Wed Dec 4 03:25:15 Coordinated Universal Time 2024