B Web werote:
>>I have some group data (2 groups), but my question is about the counts
(or averages) between groups.
tab group, sum( tot_asian)
tab group, sum( tot_white)
tab group, sum( tot_pacisland)
tab group, sum( tot_afam)
I would like to get a chi-square test, but not sure how to easily get
these down to a 2x2 table where I can do a chi-square test across
group on counts on average. The tot_ variables are continuous, but I
think the chi-square test is the right thing here.<<
With the info you gave us it's really hard to say what you want but I suspect you are looking for a two-sample t-test, assuming you have a dichotomous variable for grouping and a continuous variable.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/