next up previous

STAT 350: Lecture 15

Another Extra Sum of Squares Example: two way layout

We have data tex2html_wrap_inline42 for i from 1 to I, j from 1 to J and k from 1 to K where i labels the row effect, j labels the column effect and k labels the replicate. When K is more than 1 we generally check for interactions by comparing the additive model

displaymath64

to a saturated model in which the mean tex2html_wrap_inline66 for the combination i,j is unrestricted. Thus the full model is

displaymath70

The additive model is not identifiable (that is, the design matrix is not of full rank) unless some conditions are imposed on the row effects tex2html_wrap_inline72 and the column effects tex2html_wrap_inline74 . A common restriction imposed is that the effects sum to 0; this restriction is then used to eliminate tex2html_wrap_inline76 and tex2html_wrap_inline78 from the model equations. The resulting design matrix then has 1+(I-1)+(J-1) = I+J-1 columns and looks like

displaymath82

(There are K copies of the first row for the observations in population i=1,j=1, then K copies of the row for observations in population i=1,j=2 and so on till we get to j=J. Elimination of tex2html_wrap_inline94 produces -1's in the J-1 columns corresponding to the tex2html_wrap_inline98 's. Then we move to the JK rows corresponding to i=2 and so on with the last JK rows having -1's in the tex2html_wrap_inline106 columns reflecting the identity tex2html_wrap_inline108 .)

The full model is often reparametrized as

displaymath110

but the design matrix is actually much simpler for the first parametrization:

displaymath112

where there are K copies of the first row, tex2html_wrap_inline116 and then K copies of tex2html_wrap_inline120 and so on. There are a total of IJ columns and IJK rows.

It is not hard to find a matrix A such that

displaymath128

For instance the first column of A will be all 1's since this corresponds to adding the columns of tex2html_wrap_inline132 together and this produces a column of 1's which is the first column of tex2html_wrap_inline134 . To produce the second column of tex2html_wrap_inline134 we have to add together the first I columns of tex2html_wrap_inline132 and then subtract out the last I columns of tex2html_wrap_inline132 . Thus the second column of A consists of I 1's followed by I(J-2) 0's followed by I -1's.


next up previous



Richard Lockhart
Mon Mar 3 23:40:11 PST 1997