13.11.2012 Views

Introduction to Categorical Data Analysis

Introduction to Categorical Data Analysis

Introduction to Categorical Data Analysis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.4 SYMMETRY AND QUASI-SYMMETRY MODELS FOR SQUARE TABLES 257<br />

8.4.1 Symmetry as a Logistic Model<br />

The symmetry condition has the simple logistic form<br />

log(πij /πji) = 0 for all i and j<br />

The ML fit of the symmetry model has expected frequency estimates<br />

ˆμij = (nij + nji)/2<br />

The fit satisfies ˆμij =ˆμji. It has ˆμii = nii, a perfect fit on the main diagonal. The<br />

residual df for chi-squared goodness-of-fit tests equal I(I − 1)/2.<br />

The standardized residuals for the symmetry model equal<br />

rij = (nij − nji)/ � nij + nji<br />

(8.9)<br />

The two residuals for each pair of categories are redundant, since rij =−rji. The<br />

sum of squared standardized residuals, one for each pair of categories, equals X 2 for<br />

testing the model fit.<br />

8.4.2 Quasi-Symmetry<br />

The symmetry model is so simple that it rarely fits well. For instance, when<br />

the marginal distributions differ substantially, the model fits poorly. One can<br />

accommodate marginal heterogeneity by the quasi-symmetry model,<br />

log(πij /πji) = βi − βj for all i and j (8.10)<br />

One parameter is redundant, and we set βI = 0. The symmetry model is the special<br />

case of equation (8.10) in which all βi = 0. Roughly speaking, the higher the value<br />

of ˆβi, relatively more observations fall in row i compared <strong>to</strong> column i.<br />

Fitting the quasi-symmetry model requires iterative methods. To use software, treat<br />

each separate pair of cell counts (nij ,nji) as an independent binomial variate, ignoring<br />

the main-diagonal counts. Set up I artificial explana<strong>to</strong>ry variables, corresponding <strong>to</strong><br />

the coefficients of the {βi} parameters. For the logit log(πij /πji) for a given pair of<br />

categories, the variable for βi is 1, the variable for βj is −1, and the variables for the<br />

other parameters equal 0. (Table A.13 in the Appendix illustrates this with SAS code.)<br />

One explana<strong>to</strong>ry variable is redundant, corresponding <strong>to</strong> the redundant parameter. The<br />

fitted marginal <strong>to</strong>tals equal the observed <strong>to</strong>tals. Its residual df = (I − 1)(I − 2)/2.<br />

8.4.3 Example: Coffee Brand Market Share Revisited<br />

Table 8.5 in Section 8.3.2 summarized coffee purchases at two times. The symmetry<br />

model has G 2 = 22.5 and X 2 = 20.4, with df = 10. The lack of fit results primarily

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!