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
Add rows within the groupHi, I am trying to add individual information in few rows so that to have one row per individual. Th…
Question on merge results not consistentHi Statalist community, I am trying to merge, but every time I run it using the same do.file I get …
Generating a variable to count repetitions of observations based on group and time -rangestat-Dear Statalists, I am using Stata/MP 16.1 to analyze a large dataset (200,000 obs.) of investor lea…
How to interpret results when dependent variable takes first differenceI am currently attempting to find the impact FDI (net inflows) has on the unemployment rate in count…
Diff in Diff by Hand and StataHi everyone, I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff co…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing sub-categories of a categorical variable across two groups
Post a Comment