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
Creating a variable to express percentage change, but based on a the change from fixed points in time, not [n-1] for example.Hey, Using the help on other threads from Nick Cox I've been able to generate a variable that expre…
xtgee with fixed effectsHi everybody Is there a way to run xtgee with fixed effects? From this post (https://www.statalist.…
Categorize Date VariablesIs there a way to categorize or recode date variables (say which is in %td format) in Stata? This wo…
Bug in asreg?I believe there is a bug in the asreg function. When I run rolling window regressions on panel data …
Include N (counts) as bar labelsHi Stata users, I am interested in having N/counts in a graph apart from the current label (percent…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing sub-categories of a categorical variable across two groups
Post a Comment