Statalist


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

Re: st: Which command to test whether proportions of categories are the same in two sets of people?


From   Tirthankar Chakravarty <[email protected]>
To   [email protected]
Subject   Re: st: Which command to test whether proportions of categories are the same in two sets of people?
Date   Wed, 27 Jan 2010 21:17:48 +0530

I am not sure Ben Jann's excellent -mgof- (SSC) is able to do a
two-group comparison, but it might be useful to access an exact
Kolmogorov-Smirnov test applicable to categorical variables.

See also the packages cited in the help file for -mgof-.

T


On Wed, Jan 27, 2010 at 9:04 PM, Jen Zhen <[email protected]> wrote:
> Hi there,
>
> I have a summary table with members from (1) the treatment group and
> (2) the control group of an experiment, and would like to provide for
> each observable variable a formal test for whether the two sets of
> people come indeed from the same population. For the continuous normal
> variables, I am just doing a t-test to test for equality of means, but
> I'm not fully sure what to do instead for the categorical variables
> (with more than 2 categories).
>
> I found the -csgof- command for a Chi-Square test of whether the
> proportions of the different categories in one sample correspond to
> those coming from some hypothesis, but which command would you use to
> test whether the proportions in the two groups are identical?
>
> Thanks,
> J
> *
> *   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/
>



-- 
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).

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