13.11.2012 Views

Introduction to Categorical Data Analysis

Introduction to Categorical Data Analysis

Introduction to Categorical Data Analysis

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

168 BUILDING AND APPLYING LOGISTIC REGRESSION MODELS<br />

5.17 Refer <strong>to</strong> Table 2.10 on death penalty decisions. Fit a logistic model with the<br />

two race predic<strong>to</strong>rs.<br />

a. Test the model goodness of fit. Interpret.<br />

b. Report the standardized residuals. Interpret.<br />

c. Interpret the parameter estimates.<br />

5.18 Table 5.12 summarizes eight studies in China about smoking and lung cancer.<br />

a. Fit a logistic model with smoking and study as predic<strong>to</strong>rs. Interpret the<br />

smoking effect.<br />

b. Conduct a Pearson test of goodness of fit. Interpret.<br />

c. Check residuals <strong>to</strong> analyze further the quality of fit. Interpret.<br />

Table 5.12. <strong>Data</strong> for Problem 5.18 on Smoking and Lung Cancer<br />

Lung Cancer Lung Cancer<br />

City Smoking Yes No City Smoking Yes No<br />

Beijing Yes 126 100 Harbin Yes 402 308<br />

No 35 61 No 121 215<br />

Shanghai Yes 908 688 Zhengzhou Yes 182 156<br />

No 497 807 No 72 98<br />

Shenyang Yes 913 747 Taiyuan Yes 60 99<br />

No 336 598 No 11 43<br />

Nanjing Yes 235 172 Nanchang Yes 104 89<br />

No 58 121 No 21 36<br />

Source: Based on data in Z. Liu, Int. J. Epidemiol., 21: 197–201, 1992. Reprinted by<br />

permission of Oxford University Press.<br />

5.19 Problem 7.9 shows a 2 × 2 × 6 table for Y = whether admitted <strong>to</strong> graduate<br />

school at the University of California, Berkeley.<br />

a. Set up indica<strong>to</strong>r variables and specify the logit model that has department<br />

as a predic<strong>to</strong>r (with no gender effect) for Y = whether admitted (1 = yes,<br />

0 = no).<br />

b. For the model in (a), the deviance equals 21.7 with df = 6. What does this<br />

suggest about the quality of the model fit?<br />

c. For the model in (a), the standardized residuals for the number of females<br />

who were admitted are (4.15, 0.50, −0.87, 0.55, −1.00, 0.62) for<br />

Departments (1,2,3,4,5,6). Interpret.<br />

d. Refer <strong>to</strong> (c). What would the standardized residual equal for the number of<br />

males who were admitted in<strong>to</strong> Department 1? Interpret.<br />

e. When we add a gender effect, the estimated conditional odds ratio between<br />

admissions and gender (1 = male, 0 = female) is 0.90. The marginal

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

Saved successfully!

Ooh no, something went wrong!