Hi,

I have a data set that I will be analyzing soon by a particular grouping with 2 levels. I first want to compare the two groups on a variety of demographic characteristics (gender, race, etc.) to ensure the two groups are similarly composed. I know that Chi-Square test of independence is best to use for this type of categorical distribution comparison, but I can't find documentation on how to conduct a chi2 test on one variable split by another variable.

For example, let's say I have a race variable with 5 levels and a dichotomous group variable with 2 levels (control and treatment). If I want to compare the racial makeup of my control group with the racial makeup of my treatment group, how would I go about this is stata?

Thanks!