Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: easiest way to get chi-square test


From   B Web <[email protected]>
To   [email protected]
Subject   st: easiest way to get chi-square test
Date   Tue, 22 Dec 2009 12:23:41 -0800

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.

Thanks.

Ben
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index