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

st: RE: statalist-digest V4 #965

From   "Lachenbruch, Peter" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: statalist-digest V4 #965
Date   Mon, 5 Aug 2002 08:36:51 -0400

Regarding dependent proportions in data (without survey design effects):  it
reduces to the McNemar test.  
This can easily be seen by encoding each of the two response variables (y1
and y2) as 1 for success and 0 for failure and computing d=y1-y2.  It's
immediate that dbar=the difference in proportions.  The variance, computed
under the null hypothesis (so you get var=(d2 instead of var=((d-dbar)2 )
reduces to the usual McNemar statistic.

If you use the design strata as covariates, you "should" get the statistic
you are looking for.  (this is a guess, but I hope not too much of a

Peter A. Lachenbruch
Director, Division of Biostatistics
Office of Biostatistics and Epidemiology
Phone:  (301) 827-3320
FAX:       (301) 827-5218 

*   For searches and help try:

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