Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: chi2 on aggregate results


From   "Elizabeth Allred" <[email protected]>
To   <[email protected]>
Subject   Re: st: chi2 on aggregate results
Date   Mon, 10 May 2010 13:27:29 -0400

Exactly.

>>> On 5/10/2010 at  1:24 PM, in message
<[email protected]>, mai7777
<[email protected]> wrote:
> Thanks for the quick response. I guess it was the "col" option that I
> was looking for, but just to confirm: Below, is the Pearson chi2(1) =
>  5.9421   Pr =  testing the hypothesis that the proportion of 76.67 in
> a sample size of 30 equal to the proportion of 47.22 in a sample size
> of 36?
> 
> 
> . tabi 23 17 \ 7 19, chi col
>            |          col
>       row |         1          2 |     Total
> -----------+----------------------+----------
>         1 |        23         17 |        40
>            |     76.67      47.22 |     60.61
> -----------+----------------------+----------
>         2 |         7         19 |        26
>            |     23.33      52.78 |     39.39
> -----------+----------------------+----------
>    Total |        30         36 |        66
>            |    100.00     100.00 |    100.00
> 
>           Pearson chi2(1) =   5.9421   Pr = 0.015
> 
> 
> On Mon, May 10, 2010 at 1:15 PM, Alan Neustadtl
> <[email protected]> wrote:
>> Are you looking for something like this?
>>
>> - tabi 23 17  \ 7 19, chi col -
>>
>>
>>
>> On Mon, May 10, 2010 at 1:08 PM, mai7777 <[email protected]> wrote:
>>> hi,
>>> I'm trying to conduct a chi2 on aggregate results to test that the
>>> proportions of incidence across two treatments are the same:
>>>
>>> Treatment 1 has a total of 30 subjects, 23 of which had incidence
>>> Treatment 2 has a total of 36 subjects, 17 of which had incidence.
>>>
>>> How do I do that?
>>> Thanks!
>>> *
>>> *   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/ 
>>>
>>
>> *
>> *   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/ 
>>
> 
> *
> *   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/
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index