I am trying to do a basic Ttest. There 6 groups based on gender, race and ethnicity. I want to run a simple ttest between group 1 and 5, but I am not sure the best way to do it. From my understanding the group variable can only take two values, and I have seen people ignoring a group based on if commands, but I have 6 groups. I don't want to have to create a new pairwise variable based on each two combinations.
Related Posts with How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)
Help via mergeI have 2 datasets: HEIGHT AGE SCORE x z x y HEIGHT AGE Controls x z x x y x Ho…
Mixed frequency in panal data Hello sir, in my panel data dependent variable is monthly excess return but independent variables …
Create a rate variable for population as a whole with sample weightsDear Stata users, I am new to stata and am working on a dataset with 20 mio. people for two years w…
Changing Label Code in LabelHey everyone, I have received a data set where the sender incorrectly assigned the wrong codes for …
Adding suffix or prefix to each element of a global varlistHello, I have a core set of variables and for each of them I generated several secondary variables.…
Subscribe to:
Post Comments (Atom)
0 Response to How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)
Post a Comment