Hello,
I am trying to assess the relationship between two categorical variables in a clustered dataset, but I keep coming across an error that states 'type mismatch / r(109).' I have tried multiple combinations of destringing and restringing the variables of interest, but I continue to get the same error display. Does anyone have any suggestions? I have pasted the exact code I am running below. d_sex is the sex of the individuals in my sample, studyarea is the study area they are from, and hc_hid is the household ID for the individuals. Multiple individuals in my sample came from the same household, which is why I want to account for clustering in this chi squared analysis.
. clchi2 d_sex studyarea, cluster(hc_hid)
type mismatch
r(109);
0 Response to Error with clchi2 (clustered chi-squared test) command
Post a Comment