Hello. I am trying to create descriptive statistics across two groups (treatment and control) for a categorical variable (occupation type) that has 5 categories. For each of the categories I would like to test the difference across the two groups. The question I am asking is: In each of the occupation types is there any significant difference in their distribution across the treatment and the control group. The code below gives me a mean of 0 i.e. no difference, which makes sense. What test would be appropriate here?
ttest occupation if occupation==1, by(treatment)
Many thanks,
Karishma
Related Posts with Comparing sub-categories of a categorical variable across two groups
ppmlhdfe: lagged dependent variable as a regressorDear all, I am using ppmlhdfe to estimate a gravity model that includes an auto-regressive (AR) ter…
How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)I am trying to do a basic Ttest. There 6 groups based on gender, race and ethnicity. I want to run a…
Different results between Heckman model and separate probit + OLSDear Statalist I'm running a Heckman model and I wanted to compare the results of the Heckman model…
Can I make a bivariate histogram for two indicator variables?Let's say I have two dummy variables like this. Code: set obs 100 gen A=runiformint(0,1) gen B=run…
OR, IRR and multivariate analysisDear Listers I am working with a dataset much like the one you see here. Code: * Example generate…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing sub-categories of a categorical variable across two groups
Post a Comment