Hello Stata users,
I would like to perform a test of mean differences between two independent variables (q1 and q2), however, I would like to test the mean differences between 5 age categories i.e. test the mean differences in q1 and q2 between age_cat == 1 and age_cat == 2, age_cat == 1 and age_cat == 3, age_cat == 2 and age_cat == 4, etc (just to name a few). In total, this would mean 10 mean difference comparisons.
However, using the ttest function, you cannot perform: ttest q1 = q2, by (age_cat) since the error message gives: r(420): "more than 2 groups, only 2 allowed".
Is there a way to code the testing that what I would like to do?
Thank you in advance!
Related Posts with Test of Mean Differences by Categorical Variable
How to calculate Jagadeesh and Titman (1993) momentum strategies in STATAI am a PhD student and working on JT(1993) momentum strategies. I am looking for a code in STATA to …
Stored results for standard errorsHi, I am using probit regression and margins command thereafter. I am inquiring if the standard err…
How can I use control variables(dummy) in probit?Hello, I am working on my thesis and was my professor explained that for my dataset a probit analys…
Creating a new observation with specific "missing" valueGreetings! I have seen similar questions posted, but not close enough to what I need to figure out a…
Panel Probit/Logit Regression and time dummies- What to use?Hi all, I'm interested in running a probability model but I have some questions regarding with the …
Subscribe to:
Post Comments (Atom)
0 Response to Test of Mean Differences by Categorical Variable
Post a Comment