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
Adding random intercepts in CMP slows down estimation a lot and makes required RAM exceed 500GBI'm running a 4-equation model (2 x Heckman selection model) with CMP and I want to add random inter…
Estimation for a combination of countriesHi I have a data on number of countries and I want to run the regression on combination of countrie…
Total value per year by number of variables without missing observationHi, I would like to find out the mean value by dividing the total value per year by number of varia…
Comparing observation value of VAR with values of VAR across all observationsI'm analyzing the association between a public policy of interest and various indicators of job qual…
Replacing missing values with already existing matchHello, I have a data with two variables - company name, and gvkey. Each company name has a unique g…
Subscribe to:
Post Comments (Atom)
0 Response to Error with clchi2 (clustered chi-squared test) command
Post a Comment