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.

78 GENERALIZED LINEAR MODELS<br />

Figure 3.4. Number of satellites by width of female crab.<br />

Most software has more sophisticated ways of smoothing the data, revealing the<br />

trend without grouping the width values. Smoothing methods based on generalized<br />

additive models do this by providing even more general structural form than GLMs.<br />

They find possibly complex functions of the explana<strong>to</strong>ry variables that serve as the<br />

best predic<strong>to</strong>rs of a certain type. Figure 3.5 also shows a curve based on smoothing the<br />

data using this method. The sample means and the smoothed curve both show a strong<br />

increasing trend. (The means tend <strong>to</strong> fall above the curve, since the response counts<br />

in a category tend <strong>to</strong> be skewed <strong>to</strong> the right. The smoothed curve is less susceptible<br />

<strong>to</strong> outlying observations.) The trend seems approximately linear, and we next discuss<br />

models for which the mean or the log of the mean is linear in width.<br />

Let μ denote the expected number of satellites for a female crab, and let x denote<br />

her width. From GLM software, the ML fit of the Poisson loglinear model (3.5) is<br />

log ˆμ =ˆα + ˆβx =−3.305 + 0.164x<br />

The effect ˆβ = 0.164 of width has SE = 0.020. Since ˆβ >0, width has a positive<br />

estimated effect on the number of satellites.<br />

The model fit yields an estimated mean number of satellites ˆμ, afitted value, at<br />

any width. For instance, from equation (3.6), the fitted value at the mean width of<br />

x = 26.3 is<br />

ˆμ = exp( ˆα + ˆβx) = exp[−3.305 + 0.164(26.3)] =e 1.01 = 2.7

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

Saved successfully!

Ooh no, something went wrong!