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)
testing code blocks Code: This is a test with 10 spaces between here> <and here. If you copy the code …
Generating a new variable based on inequality between two other variables for certain valuesHi guys, this is actually the first time I am posting something in this forum. I am currently worki…
A question on using macro variableI am running several models and only wanted to export selected regression coefficients to excel. So …
ignore this! …
Create categorical variables from string variableHello! I have a problem: I have a dataset which include Chinese cities, however, they are stored in…
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