Costs? Benefits?
Incorporates Gradient
n=1 per block
Randomization within blocks
Units placed across a lake so that 1 set of each treatment was ’blocked’ together
\[y_{k} = \beta_{0} + \sum \beta_{i}x_{i} + \sum \beta_{j}x_{j} + \epsilon_{k}\]
\[\epsilon_{ijk} \sim N(0, \sigma^{2} ), \qquad x_{i} = 0,1\]
Or, with matrices…
\[\boldsymbol{Y} = \boldsymbol{\beta X} + \boldsymbol{\epsilon}\]
Independence of data points
Normality within groups (of residuals)
No relationship between fitted and residual values
Homoscedasticity (homogeneity of variance) of groups
Additivity of Treatments
Test stat Pr(>|t|)
0.474 0.635
TreatmentHo: \(\mu_{i1} = \mu{i2} = \mu{i3} = ...\)
Block Ho: \(\mu_{j1} = \mu{j2} = \mu{j3} = ...\)
i.e., The variane due to each treatment type is no different than noise
\(SS_{Total} = SS_{Between A} + SS_{Between B} + SS_{Within}\)
term | df | sumsq | meansq | statistic | p.value |
---|---|---|---|---|---|
treatment | 2 | 6.857333 | 3.428667 | 16.365951 | 0.0014881 |
block | 4 | 2.340000 | 0.585000 | 2.792363 | 0.1010308 |
Residuals | 8 | 1.676000 | 0.209500 | NA | NA |
term | estimate | std.error | statistic | p.value |
---|---|---|---|---|
treatmentcontrol | 3.42 | 0.3126766 | 10.9378182 | 0.0000043 |
treatmenthigh | 1.78 | 0.3126766 | 5.6927826 | 0.0004582 |
treatmentlow | 2.40 | 0.3126766 | 7.6756619 | 0.0000588 |
block2 | 0.00 | 0.3737200 | 0.0000000 | 1.0000000 |
block3 | -0.70 | 0.3737200 | -1.8730599 | 0.0979452 |
block4 | -1.00 | 0.3737200 | -2.6757998 | 0.0281084 |
block5 | -0.30 | 0.3737200 | -0.8027399 | 0.4453163 |
Component-Residual Plots take examine unique effect of one treatment after removing influence of the other.
contrast estimate SE df t.ratio p.value
control - high 1.64 0.2894823 8 5.665 0.0012
control - low 1.02 0.2894823 8 3.524 0.0190
high - low -0.62 0.2894823 8 -2.142 0.1424
Results are averaged over the levels of: block
P value adjustment: tukey method for comparing a family of 3 estimates
Uh oh… a cat ate my treatment!
This is a big problem
Sums of Squares are not ‘unbalanced’ - more information goes into one than the other
Suddenly, order matters…
zooplankton ~ treatment + block
Df | Sum Sq | Mean Sq | F value | Pr(>F) | |
---|---|---|---|---|---|
treatment | 2 | 4.171 | 2.086 | 18.046 | 0.002 |
block | 4 | 1.749 | 0.437 | 3.783 | 0.060 |
Residuals | 7 | 0.809 | 0.116 | NA | NA |
zooplankton ~ block + treatment
Df | Sum Sq | Mean Sq | F value | Pr(>F) | |
---|---|---|---|---|---|
block | 4 | 1.878 | 0.469 | 4.062 | 0.052 |
treatment | 2 | 4.043 | 2.021 | 17.490 | 0.002 |
Residuals | 7 | 0.809 | 0.116 | NA | NA |
Type I Sums of Squares:
SS for A calculated from a model with A + Intercept versus just Intercept
SS for B calculated from a model with A + B + Intercept versus A + Intercept
This is fine for a balanced design. Variation evenly partitioned.
Type II Sums of Squares:
SS for A calculated from a model with A + B + Intercept versus B + Intercept
SS for B calculated from a model with A + B + Intercept versus A + Intercept
Each SS is the unique contribution of a treatment
If the design is balanced, no different than type I
Type I | Type II | |
Test for A | A v. 1 | A + B v. B |
Test for B | A + B v. A | A + B v. A |
Sequential SS v. Marginal SS
Sum Sq | Df | F value | Pr(>F) | |
---|---|---|---|---|
treatment | 4.043 | 2 | 17.490 | 0.002 |
block | 1.749 | 4 | 3.783 | 0.060 |
Residuals | 0.809 | 7 | NA | NA |
Compare to zooplankton ~ treatment + block:
Df | Sum Sq | Mean Sq | F value | Pr(>F) | |
---|---|---|---|---|---|
treatment | 2 | 4.171 | 2.086 | 18.046 | 0.002 |
block | 4 | 1.749 | 0.437 | 3.783 | 0.060 |
Residuals | 7 | 0.809 | 0.116 | NA | NA |
Sum Sq | Df | F value | Pr(>F) | |
---|---|---|---|---|
treatment | 4.043 | 2 | 17.490 | 0.002 |
block | 1.749 | 4 | 3.783 | 0.060 |
Residuals | 0.809 | 7 | NA | NA |
Compare to zooplankton ~ block + treatment:
Df | Sum Sq | Mean Sq | F value | Pr(>F) | |
---|---|---|---|---|---|
block | 4 | 1.878 | 0.469 | 4.062 | 0.052 |
treatment | 2 | 4.043 | 2.021 | 17.490 | 0.002 |
Residuals | 7 | 0.809 | 0.116 | NA | NA |
Latin Squares Design
Accomodates multiple gradients
Col 1 | Col 2 | Col 3 | Col 4 | |
---|---|---|---|---|
Row 1 | A | B | C | D |
Row 2 | B | C | D | A |
Row 3 | C | D | A | B |
Row 4 | D | A | B | C |
Every row and column contains one replicate of a treatment.
Can be generalized to n gradients \[y_{ijkl} = \beta_{0} + \sum \beta_{i}x_{i} + \sum \beta_{j}x_{j} + \sum \beta_{k}x_{k} +\epsilon_{ijkl}\]
\[\epsilon_{ijk} \sim N(0, \sigma^{2} ), \qquad x_{i} = 0,1\]