Re: Kenya 1998 Dataset Content Questions [message #28828 is a reply to message #28643] |
Fri, 15 March 2024 13:20 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
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
|
|
|