Analysis of comparative data using generalized estimating equations