The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » SVYSET (Declaring the survey design for Kenya dataset)
SVYSET [message #30186] Thu, 10 October 2024 04:03 Go to previous message
Kayemba is currently offline  Kayemba
Messages: 2
Registered: October 2024
Member
Hello DHS users,
I need help. When I run my Multivariable model, I get the error message "Note: Missing standard errors because of stratum with single sampling unit." I suspected it was because of how I declared the dataset Survey design to STATA. I am using the Kenya Dataset for 2022. Below are the three different options I used to declare the survey design but none of them seemed to resolve the error. What can I do different? Thank you

Option 1
gen wt=v005/1000000 //generating the weighting variable
egen strata=group(v024 v025) //generating the stratifying variable
svyset [pw=wt], psu(v001) strata(strata) //declaring the survey design

Option 2
gen wt=v005/1000000 //generating the weighting variable
egen strata=group(v024 v025) //generating the stratifying variable
svyset [pw=wt], psu(v021) strata(strata) //declaring the survey design

Option 3
gen wt=v005/1000000 //generating the weighting variable
svyset [pw=wt], psu(v021) strata(v023) //declaring the survey design


Kayemba
 
Read Message
Read Message
Read Message
Previous Topic: KDHS 2014: Table 2.14 School attendance ratios
Next Topic: Baby size (m18)
Goto Forum:
  


Current Time: Mon Nov 18 12:01:08 Coordinated Universal Time 2024