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]

st: Mcnemar using mcc command


From   "rasool.bux" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Mcnemar using mcc command
Date   Mon, 5 Nov 2012 10:21:29 +0000

Dear Statalist,

I want to run Mcnemar test in stata. The mcc command is not giving correct results. Following are the commands and data.

. tab before after

           |         after
    before |       Yes         No |     Total
-----------+----------------------+----------
       Yes |        56         50 |       106
        No |         8          4 |        12
-----------+----------------------+----------
     Total |        64         54 |       118

. mcci 56 50 8 4

                 | Controls               |
Cases            |   Exposed   Unexposed  |      Total
-----------------+------------------------+------------
         Exposed |        56          50  |        106
       Unexposed |         8           4  |         12
-----------------+------------------------+------------
           Total |        64          54  |        118

McNemar's chi2(1) =     30.41    Prob > chi2 = 0.0000
Exact McNemar significance probability       = 0.0000

Proportion with factor
        Cases       .8983051
        Controls    .5423729     [95% Conf. Interval]
                   ---------     --------------------
        difference  .3559322      .2384751   .4733893
        ratio        1.65625      1.381722   1.985323
        rel. diff.  .7777778      .6474725   .9080831

        odds ratio      6.25      2.939959   15.26554   (exact)

********************
. mcc before after

                 | Controls               |
Cases            |   Exposed   Unexposed  |      Total
-----------------+------------------------+------------
         Exposed |       118           0  |        118
       Unexposed |         0           0  |          0
-----------------+------------------------+------------
           Total |       118           0  |        118

McNemar's chi2(1) =         .    Prob > chi2 =      .
Exact McNemar significance probability       = 1.0000

Proportion with factor
        Cases              1
        Controls           1     [95% Conf. Interval]
                   ---------     --------------------
        difference         0     -.0084746   .0084746
        ratio              1             1          1
        rel. diff.         .             .          .

        odds ratio         .             .          .   (exact)


Is there any suggestion or any other command/option to get same results?

Thanks
Rasool Bux

________________________________

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index