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

st: reply to Martkyn Sherrif

From   "Lachenbruch, Peter" <>
To   "statalist (E-mail)" <>
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
Alternatively, one could do a conditional logistic regression using id as a

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

*   For searches and help try:

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