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)
Re: Reshaping Kenya's DHS dataset [message #27900 is a reply to message #27897] Thu, 19 October 2023 09:04 Go to previous messageGo to previous message
Ritapriya Bandyopadhyay is currently offline  Ritapriya Bandyopadhyay
Messages: 16
Registered: October 2023
Member
Thanks a lot! I had another question. I wanted to find out the number of students enrolled across different education levels per age. So to weight it, I am using the following command: svyset psu [pw=weight], strata(stratum) singleunit(scaled). To view my results I am using the following command: tab age school_level, count. I have used hv022 for stratum and hv021 for psu. I have divided the hv005 variable by 1000000 to arrive at the household weights.

However when the count is displayed I observed that "number of observations" is greater than "population size" - how is this possible? Because population size is supposed to be greater than sample observations, right? I am working with adolescents between 10-24 year olds, but I am using household weights.
 
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: Sun Jul 28 04:14:59 Coordinated Universal Time 2024