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
Construct the standard error for the SCAR (event study)Dear Stata community, I'm trying to replicate the empirical strategy of the paper from Aybar and Ay…
Industry and Country effect cross sectional regressionHello Statalist Forum, I am looking at the industry and country effect in 16 countries and 10 indus…
Interpolate (extrapolate) values (mipolate)Hi Everyone, As my data set has some missing values, I have used the "mipolate" command found in st…
qlqc30 command / stata deletes vars that dont need to be deletedhttps://journals.sagepub.com/doi/pdf...867X1501500407 Hi there, I have quality of life data that i …
Non-linear constraint in a SURE estimationDear Statalist contributors, I am trying to estimate a system of seemingly unrelated labor supplies…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing sub-categories of a categorical variable across two groups
Post a Comment