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);
Related Posts with Error with clchi2 (clustered chi-squared test) command
Convert Variable Values to Separate VariableHello, I am part of a research team analyzing survey data regarding attitudes towards a specific he…
Presence of Heteroskedasticity, Autocorrelation and Cross-sectional Dependence/Contemporaneous Correlation - Panel DataI have a quarterly balanced panel data with 8 independent variables from 2000q1:2012:q2 (n=20 and T=…
Axis manipulation in coefplot iwth multiple subgraphsHello Stata Users, I have 4 different sets of regression coefficients that I would like to plot usin…
Loop/Local Macro Not WorkingHello, Recently I've been having a lot of trouble with local macros, especially when using them for…
Robust standard errors with alternative applicationDear all, I wonder if anyone knows about an application or user written program that can be used to …
Subscribe to:
Post Comments (Atom)
0 Response to Error with clchi2 (clustered chi-squared test) command
Post a Comment