Diff for "FAQ/ss" - CBU statistics Wiki
location: Diff for "FAQ/ss"
Differences between revisions 18 and 19
Revision 18 as of 2008-09-18 11:30:02
Size: 2787
Editor: PeterWatson
Comment:
Revision 19 as of 2013-03-08 10:17:39
Size: 2789
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
These formulae are used in this [attachment:bbww.xls spreadsheet] to compute an analysis of variance for ''balanced'' designs of upto 2 between and 2 within subject factors. __Note__ : The anova table is outputted in Sheet 2 of the spreadsheet. These formulae are used in this [[attachment:bbww.xls|spreadsheet]] to compute an analysis of variance for ''balanced'' designs of upto 2 between and 2 within subject factors. __Note__ : The anova table is outputted 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 used in this spreadsheet to compute an analysis of variance for balanced designs of upto 2 between and 2 within subject factors. Note : The anova table is outputted in Sheet 2 of the spreadsheet.

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