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
How can I create "dct" file to browse data of .dat format?Hi everyone, I might ask one of the stupidest questions but here is a problem that I've been strugg…
Using both the forward and backward option of stripolate?Hello, I am working with quarterly program participation data for a panel of individuals. I have in…
Very general cluster analysis questionHi, I am interested in thinking about a cluster analysis (or some other analysis, open to suggestio…
Doubt regarding construction of a variableDear Statalist, I have a doubt regarding construction of a variable. I am new to stata. I will be h…
Running regression on panel data using a single year of dataHi everyone, The data that I'm using is from a study by Nicholas Bloom, Mirko Draca and John Van Re…
Subscribe to:
Post Comments (Atom)
0 Response to Error with clchi2 (clustered chi-squared test) command
Post a Comment