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 next 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
Re: SVYSET [message #30187 is a reply to message #30186] Thu, 10 October 2024 10:29 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3196
Registered: February 2013
Senior Member

Following is a response from Senior DHS staff member, Tom Pullum:

Enter "help svyset" and look at the last option under "SE".

All three versions of svyset should work, except that you need to insert "singleunit(centered)" right after the "strata" specification.
Re: SVYSET [message #30190 is a reply to message #30187] Fri, 11 October 2024 03:15 Go to previous message
Kayemba is currently offline  Kayemba
Messages: 2
Registered: October 2024
Member
Thank yo Tom
The solution you offered helped


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


Current Time: Mon Nov 18 09:38:52 Coordinated Universal Time 2024