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
test "dose-response" with categorical variableHi! I am performing cox regressions with a categorical indep. variable. In the survey, we have a lik…
Entity fixed effects model - repeated time values within panelHello, I want to run a regression in which the explained variable is the bond coupon and there are s…
Loop to fill missing valuesHello, I am using a panel data set that has a unique firm id called 'firm_id'. However, this firm_i…
estout test resultsI am trying to obtain the test results using estout command however I am unable to put them there. …
Plot survival curve of the interaction in Stratified Cox ModelDear all, I ran a Cox model with strata(year), stcox X1 X2 c.X1#i.X2, strata(year) vce(robust) X1 i…
Subscribe to:
Post Comments (Atom)
0 Response to Error with clchi2 (clustered chi-squared test) command
Post a Comment