15.01.2013 Views

an introduction to generalized linear models - GDM@FUDAN ...

an introduction to generalized linear models - GDM@FUDAN ...

an introduction to generalized linear models - GDM@FUDAN ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

2.4.1 Example: Me<strong>an</strong>s for two groups<br />

For the data on chronic medical conditions the equation in the model<br />

E(Yjk) =θj; Yjk ∼ P oisson(θj),j =1, 2<br />

c<strong>an</strong> be written in the form of (2.13) with g as the identity function, (i.e.,<br />

g(θj) =θj),<br />

⎡<br />

⎢<br />

y = ⎢<br />

⎣<br />

Y1,1<br />

Y1,2<br />

.<br />

Y1,26<br />

Y2,1<br />

.<br />

Y2,23<br />

⎤<br />

⎥ , β =<br />

⎥<br />

⎦<br />

� θ1<br />

θ2<br />

�<br />

⎡<br />

1 0<br />

⎤<br />

<strong>an</strong>d<br />

⎢<br />

1<br />

⎢ .<br />

⎢ .<br />

X = ⎢ 1<br />

⎢ 0<br />

⎢<br />

⎣ .<br />

0<br />

.<br />

.<br />

0<br />

1<br />

.<br />

.<br />

⎥<br />

⎦<br />

0 1<br />

The <strong>to</strong>p part of X picks out the terms θ1 corresponding <strong>to</strong> E(Y1k) <strong>an</strong>d the<br />

bot<strong>to</strong>m part picks out θ2 for E(Y2k). With this model the group me<strong>an</strong>s θ1<br />

<strong>an</strong>d θ2 c<strong>an</strong> be estimated <strong>an</strong>d compared.<br />

2.4.2 Example: Simple <strong>linear</strong> regression for two groups<br />

The more general model for the data on birthweight <strong>an</strong>d gestational age is<br />

E(Yjk) =µjk = αj + βjxjk; Yjk ∼ N(µjk,σ 2 ).<br />

This c<strong>an</strong> be written in the form of (2.13) if g is the identity function,<br />

⎡<br />

⎢<br />

y = ⎢<br />

⎣<br />

Y11<br />

Y12<br />

.<br />

Y1K<br />

Y21<br />

.<br />

Y2K<br />

⎤<br />

⎥ ⎡<br />

⎥ ⎢<br />

⎥ , β = ⎢<br />

⎣<br />

⎥<br />

⎦<br />

α1<br />

α2<br />

β1<br />

β2<br />

⎤<br />

⎥<br />

⎦ <strong>an</strong>d<br />

⎡<br />

1<br />

⎢<br />

1<br />

⎢ .<br />

⎢ .<br />

X = ⎢ 1<br />

⎢ 0<br />

⎢<br />

⎣ .<br />

0<br />

0<br />

.<br />

0<br />

1<br />

.<br />

x11<br />

x12<br />

.<br />

x1K<br />

0<br />

.<br />

0<br />

0<br />

.<br />

0<br />

x21<br />

.<br />

⎤<br />

⎥<br />

⎦<br />

0 1 0 x2K<br />

2.4.3 Example: Alternative formulations for comparing the me<strong>an</strong>s of two<br />

groups<br />

There are several alternative ways of formulating the <strong>linear</strong> components for<br />

comparing me<strong>an</strong>s oftwo groups: Y11, ..., Y1K1<strong>an</strong>d Y21, ..., Y2K2.<br />

(a) E(Y1k) =β1, <strong>an</strong>d E(Y2k) =β2.<br />

� �<br />

β1<br />

This is the version used in Example 2.4.1 above. In this case β =<br />

© 2002 by Chapm<strong>an</strong> & Hall/CRC<br />

β2

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

Saved successfully!

Ooh no, something went wrong!