Diff for "FAQ/ss" - CBU statistics Wiki
location: Diff for "FAQ/ss"
Differences between revisions 9 and 10
Revision 9 as of 2008-08-19 14:44:29
Size: 2538
Editor: PeterWatson
Comment:
Revision 10 as of 2008-09-17 15:47:40
Size: 2765
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:

These formulae are uses [attachment:bbww.xls here] to compute an analysis of variance featuring ''balanced'' designs of upto 2 between and 2 within factors. __Note:__ The output table is given in Sheet 2 of the spreadsheet.

Formulae for interaction sums of squares (SS) in balanced designs

Formulae for interaction sums of squares in a factorial (between subject) analysis of variance can be expressed as a sum of squared residuals. The residual formulae may be found to be easier to use for computing purposes than those (for example in Howell, 2002 as they only involve the squaring of only one term.

Boniface (1995) gives the formula for the two-way interaction SS as

$$ \sum_text{combinations i,j} n_text{ij}(\mbox{mean}_text{ij} - \mbox{mean}_text{i+} - \mbox{mean}_text{+j} + \mbox{overall mean})^text{2}$$

where $$n_text{ij}$$ observations have combination of values i and j. These are assumed equal for all i and j (balance). The '+' in the subscripts denotes pooling so, for example, $$\mbox{mean}_text{i+}$$ signifies the mean when the first factor takes the value i.

Using formulae in Howell (2002, p.459) for the three-way interaction and the orthogonality of the sums of squares in the anova for balanced designs we can define the SS(three-way interaction) as

$$\sum_text{combinations i,j,k} n_text{ijk}(\mbox{mean}_text{ijk} + \mbox{mean}_text{i++} + \mbox{mean}_text{+j+} + \mbox{mean}_text{++k} - \mbox{mean}_text{ij+} - \mbox{mean}_text{i+k} -\mbox{mean}_text{+jk} - \mbox{overall mean})^text{2}$$

where $$n_text{ijk}$$ observations have combination of values i, j and k. These are assumed equal for all i, j and k (balance). The '+' in the subscripts denotes pooling so that, for example, $$\mbox{mean}_text{i++}$$ signifies the mean when the first factor takes the value i and $$\mbox{mean}_text{ij+}$$ signifies the mean when the first two factors have values i and j respectively.

For a four-way interaction the sums of squares are

$$\sum_text{combinations i,j,k,l} n_text{ijkl} (\mbox{mean}_text{ijkl} - \mbox{mean}_text{i+++} - \mbox{mean}_text{+j++} - \mbox{mean}_text{++k+} - \mbox{mean}_text{+++l} $$

$$ + \mbox{mean}_text{ij++} + \mbox{mean}_text{i+k+} +\mbox{mean}_text{i++l} + \mbox{mean}_text{+jk+} + \mbox{mean}_text{+j+l} + \mbox{mean}_text{++kl} $$ $$ - \mbox{mean}_text{ijk+} - \mbox{mean}_text{ij+l} - \mbox{mean}_text{i+kl} - \mbox{mean}_text{+jkl} + \mbox{overall mean})^text{2}$$.

  • The above four-way interaction is simply the sum over all combinations of the four factors. For each combination of four factors the cell mean for that combination has subtracted all of its one-way and three-way means with all its two-way means added as well as the overall mean.

These formulae are uses [attachment:bbww.xls here] to compute an analysis of variance featuring balanced designs of upto 2 between and 2 within factors. Note: The output table is given in Sheet 2 of the spreadsheet.

None: FAQ/ss (last edited 2018-01-11 12:56:15 by PeterWatson)