Testing the equality of proportions from dependent samples


There are two common scenarios:

  1. Each subject or item provides a response on several binary variables and the only data available are the proportions responding positively. If the cell counts of the entire 2×2×...×2 table are available, you can use Cochran's Q. See the Cochran's Q entry in the FASTats list (SAS KB0057103). Berry and Hurtado (1994) provided SAS/IML modules that give confidence intervals for the difference in dependent proportions. You can use their MULTIBIN SAS/IML® module for this scenario.
  2. Each subject is categorized into one level of a multilevel variable, and you want to compare the proportions in each level. See the discussion of how to use PROC LOGISTIC and the NLMeans macro (SAS Note 62362) for such comparisons in SAS KB0057147.

For comparison of two or more independent proportions, see SAS KB0060831.

_________

Berry, J.J. and Hurtado, G.I. (1994), "Comparing Non-Independent Proportions," Observations: The Technical Journal for SAS Software Users, 3(4), 21-27.