The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » Kenya 1998 Dataset Content Questions
Re: Kenya 1998 Dataset Content Questions [message #28828 is a reply to message #28643] Fri, 15 March 2024 13:20 Go to previous messageGo to previous message
BevB is currently offline  BevB
Messages: 3
Registered: February 2024
Member
Hello,

Thank you for the response. I'd like to ask if you have any recommendations for this error message that appears in R when I try to run a chi square test between the 'excessive bleeding' variable and the 'urban', as I am trying to see if there is a significant association with excessive bleeding by urban-rural status.

The following error message is indicating that there's a problem with the survey design object 'mysurveydesign'. Specifically, it's indicating that one of the strata defined in the survey design has only one Primary Sampling Unit (PSU) at stage 1. However, my DHS dataset has multiple strata and PSUs.

> # chi square results for excessive bleeding (last birth)
> chisquareresult1 <- svychisq(~ excessbleed1 + urban, design = mysurveydesign)

Error in onestrat(`attr<-`(x[index, , drop = FALSE], "recentering", recentering), :
Stratum (2) has only one PSU at stage 1
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: KDHS 2022: Table 2.17 Food security status
Next Topic: KDHS 2014 - Table 10.2 Vaccinations by source of information
Goto Forum:
  


Current Time: Thu Sep 12 02:11:36 Coordinated Universal Time 2024