Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: reply to Martkyn Sherrif


From   "Lachenbruch, Peter" <lachenbruch@cber.FDA.gov>
To   "statalist (E-mail)" <statalist@hsphsun2.harvard.edu>
Subject   st: reply to Martkyn Sherrif
Date   Mon, 31 Mar 2003 08:37:00 -0500

One possibility would be to use the following:
bysort id:: gen diff=x[1]-x[2] if _n==1

this would generate the differences and one could do a paired t-test on
them.  This is equivalent to McNemar's test asymptotically under the null
hypothesis.
Alternatively, one could do a conditional logistic regression using id as a
block.  

Peter A. Lachenbruch, Ph. D.
Director, Division of Biostatistics
OBE/CBER/FDA
Phone    (301) 827-3320
FAX        (301) 827-5218

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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