In an attempt to understand the effects on marine animals of short-term exposure to toxic substances, such as might occur following a spill, or a major increase in storm water flows, a it was decided to examine the toxicant in question, Copper, as part of a field experiment in Honk Kong. The experiment consisted of small sources of Cu (small, hemispherical plaster blocks, impregnated with copper), which released the metal into sea water over 4 or 5 days. The organism whose response to Cu was being measured was a small, polychaete worm, Hydroides, that attaches to hard surfaces in the sea, and is one of the first species to colonize any surface that is submerged. The biological questions focused on whether the timing of exposure to Cu affects the overall abundance of these worms. The time period of interest was the first or second week after a surface being available.
The experimental setup consisted of sheets of black perspex (settlement plates), which provided good surfaces for these worms. Each plate had a plaster block bolted to its centre, and the dissolving block would create a gradient of [Cu] across the plate. Over the two weeks of the experiment, a given plate would have pl ain plaster blocks (Control) or a block containing copper in the first week, followed by a plain block, or a plain block in the first week, followed by a dose of copper in the second week. After two weeks in the water, plates were removed and counted back in the laboratory. Without a clear idea of how sensitive these worms are to copper, an effect of the treatments might show up as an overall difference in the density of worms across a plate, or it could show up as a gradient in abundance across the plate, with a different gradient in different treatments. Therefore, on each plate, the density of worms (#/cm2) was recorded at each of four distances from the center of the plate.
Categorical listing of the copper treatment (control = no copper applied, week 2 = copper treatment applied in second week and week 1= copper treatment applied in first week) applied to whole plates. Factor A (between plot factor).
PLATE
Substrate provided for polychaete worm colonization on which copper treatment applied. These are the plots (Factor B). Numbers in this column represent numerical labels given to each plate.
DIST
Categorical listing for the four concentric distances from the center of the plate (source of copper treatment) with 1 being the closest and 4 the furthest. Factor C (within plot factor)
WORMS
Density (#/cm2) of worms measured. Response variable.
Q3-2. The usual ANOVA assumptions apply to split-plot designs, and these can be tested by constructing boxplots for each of the main effects. However, it is important to consider what data the boxplots should be based upon. For each of the main hypothesis tests, describe what data should be used to construct boxplots (remember that the assumptions of normality and homogeneity of variance apply to the residuals of each hypothesis test, and therefore the data used in the construction of boxplots for each hypothesis test should represent the respective residuals, or sources of unexplained variation).
H0 Main Effect 1 (Factor A):
H0 Main Effect 2 (Factor C):
H0 Main Effect 3 (A*C):
Q3-3. For each of the hypothesis tests, indicate which Mean Square term should be used as the residual (denominator) in the F-ratio calculation. Note, COPPER and DIST are fixed factors and PLATE is a random factor.
H0 Main Effect 1 (Factor A): F-ratio = MSCOPPER/MS
H0 Main Effect 2 (Factor C): F-ratio = MSDIST/MS
H0 Main Effect 3 (A*C): F-ratio = MSCOPPER:DIST/MS
Q3-4. Construct a boxplot to investigate the assumptions as they apply to the test of H0 Main Effect 1 (Factor A): This is done in two steps
Aggregate the data set by the mean number of WORMS within each plate
(HINT)
Construct a boxplot of aggregated mean number of WORMS against COPPER treatment
(HINT)
Show code
> boxplot(WORMS~COPPER,data=cu.ag)
Any evidence of violations of the assumptions (y or n)?
Q3-5.
Construct a boxplot to investigate the assumptions as they apply to the test of H0 Main Effect 2 (Factor C): Since Factor C is tested against the overal residual in this case, this is a relatively straight forward procedure.
(HINT)
Show code
> boxplot(WORMS~DIST,data=copper)
Any evidence of violations of the assumptions (y or n)?
Q3-6.
Construct a boxplot to investigate the assumptions as they apply to the test of H0 the main interaction effect (A:C): Since A:C is tested against the overal residual, this is a relatively straight forward procedure.(HINT)
Show code
> boxplot(WORMS~COPPER:DIST,data=copper)
Any evidence of violations of the assumptions (y or n)?
Q3-7.
In addition to the above assumptions, the test of PLATE assumes that there is no PLATE by DIST interaction as this is the overal residual (the replicates).
That is, the test assumes that the effect of DIST is consistent in all PLATES.
Construct an interaction plot to examine whether there is any evidence of an interaction between PLATE and DISTANCE
(HINT)
Q3-9. Perform a
split-plot ANOVA
(HINT),
and complete the following table (HINT).
To obtain the hypothesis test for the random factor (Factor B: PLATE), run the model as if all factors were fixed and thus all terms are tested against the overall residuals,
HINT)
Anova Table (Type I tests)
Response: WORMS
Error: PLATE
Df Sum Sq Mean Sq F value Pr(>F)
COPPER 2 784 392 128 8.1e-09 ***
Residuals 12 37 3
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
DIST 3 153.8 51.3 28.38 1.4e-09 ***
COPPER:DIST 6 53.4 8.9 4.93 9e-04 ***
Residuals 36 65.0 1.8
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Greenhouse-Geisser corrected ANOVA table
Response: WORMS
Error: PLATE
Df Sum Sq Mean Sq F value Pr(>F)
COPPER 1.04 784 392 128 8e-08 ***
Residuals 12.00 37 3
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
DIST 1.56 153.8 51.3 28.38 2.7e-07 ***
COPPER:DIST 3.12 53.4 8.9 4.93 0.0052 **
Residuals 36.00 65.0 1.8
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Huynh-Feldt corrected ANOVA table
Response: WORMS
Error: PLATE
Df Sum Sq Mean Sq F value Pr(>F)
COPPER 1.17 784 392 128 5.3e-08 ***
Residuals 12.00 37 3
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
DIST 1.75 153.8 51.3 28.38 1.1e-07 ***
COPPER:DIST 3.50 53.4 8.9 4.93 0.004 **
Residuals 36.00 65.0 1.8
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Source of variation
df
Mean Sq
F-ratio
P-value
COPPER
PLATE
 
 
DIST
COPPER:DIST
Residuals
 
 
Q3-10.Construct an
interaction plot
showing the density of worms against distance from Cu source, with each treatment as different lines (or different bars).
HINT
Q3-11. What conclusions would you draw from the analysis (and graph)?
Q3-12.
In order to tease out the interaction, we could analyse the effects of the main factor (COPPER) separately for each Distance and/or investigate the effects of Distance separately for each of the three copper treatments.
Recall that when performing such simple main effects, it is necessary to use the residual terms from the global analyses as these are likely to be better estimates (as they are based on a larger amount of data).
Investigate the effects of copper separately for each of the
four distances HINT
Model df AIC BIC logLik Test L.Ratio p-value
copper.lme 1 14 228.3 257.6 -100.1
copper.lme1 2 15 230.3 261.7 -100.1 1 vs 2 1.025e-10 1
> #Check whether a first order autoregressive correlation structure is more> # appropriate> copper.lme2<-update(copper.lme,correlation=corAR1(form=~1|+ PLATE))> anova(copper.lme,copper.lme2)
Model df AIC BIC logLik Test L.Ratio p-value
copper.lme 1 14 228.3 257.6 -100.14
copper.lme2 2 15 222.9 254.3 -96.47 1 vs 2 7.352 0.0067
> # Now fit the 'best'' model with REML> copper.lme3<-update(copper.lme2,method="REML")> anova.lme(copper.lme3)
Broad interpretation:
In general, compared to the number of worms settling on the control plates, the number of worms settling was less in the Week 1 treatment and even lower in the Week 2 treatment.
The increases in number of settled worms in distances progressively further from the source (Dist 1) get progressively larger
and the trend between DIST1 (base level) and DIST 4 is significantly greater for the Week 2 treatment compared to the control copper treatment.
Examine the model fit measures
Interpretation: Compared to the number of worms settling on control plates, the number of settling worms is less in Week 1 and even lower in the Week 2 copper treatment.
Settlement increases with increasing distance from the copper source and this rate of increase is over twice the rate (significantly greater) in the Week 2 treatment.
In an honours thesis from (1992), Mullens was investigating the ways that cane toads ( Bufo marinus ) respond to conditions of hypoxia. Toads show two different kinds of breathing patterns, lung or buccal, requiring them to be treated separately in the experiment. Her aim was to expose toads to a range of O2 concentrations, and record their breathing patterns, including parameters such as the expired volume for individual breaths. It was desirable to have around 8 replicates to compare the responses of the two breathing types, and the complication is that animals are expensive, and different individuals are likely to have different O2 profiles (leading to possibly reduced power). There are two main design options for this experiment;
One animal per O2 treatment, 8 concentrations, 2 breathing types. With 8 replicates the experiment would require 128 animals, but that this could be analysed as a completely randomized design
One O2 profile per animal, so that each animal would be used 8 times and only 16 animals are required (8 lung and 8 buccal breathers)
Mullens decided to use the second option so as to reduce the number of animals required (on financial and ethical grounds). By selecting this option, she did not have a set of independent measurements for each oxygen concentration, by repeated measurements on each animal across the 8 oxygen concentrations.
Categorical listing of the breathing type treatment (buccal = buccal breathing toads, lung = lung breathing toads). This is the between subjects (plots) effect and applies to the whole toads (since a single toad can only be one breathing type - either lung or buccal). Equivalent to Factor A (between plots effect) in a split-plot design
TOAD
These are the subjects (equivalent to the plots in a split-plot design: Factor B). The letters in this variable represent the labels given to each individual toad.
O2LEVEL
0 through to 50 represent the the different oxygen concentrations (0% to 50%). The different oxygen concentrations are equivalent to the within plot effects in a split-plot (Factor C).
FREQBUC
The frequency of buccal breathing - the response variable
SFREQBUC
Square root transformed frequency of buccal breathing - the response variable
BREATH TOAD O2LEVEL FREQBUC SFREQBUC
1 lung a 0 10.6 3.256
2 lung a 5 18.8 4.336
3 lung a 10 17.4 4.171
4 lung a 15 16.6 4.074
5 lung a 20 9.4 3.066
6 lung a 30 11.4 3.376
Notice that both the O2LEVEL variable contains only numbers. Make sure that you define both of this as a factors (HINT)
Show code
> mullens$O2LEVEL<-factor(mullens$O2LEVEL)
Q4-1. What are the main hypotheses being tested?
H0 Main Effect 1 (Factor A):
H0 Main Effect 2 (Factor C):
H0 Main Effect 3 (A*C):
Q4-2. We will now address all the assumptions.
Construct a boxplot to investigate the assumptions as they apply to the test of H0 Main Effect 1 (Factor A): This is done in two steps
Construct a boxplot to investigate the assumptions as they apply to the test of H0 Main Effect 1 (Factor A):
Start by aggregating the data set by TOAD
(since the toads are the replicates for the between subject effect - BREATH) (HINT).
Then Construct a boxplot of aggregated mean FREQBUC against BREATH treatment
(HINT).
Any evidence of violations of the assumptions (y or n)?
Construct a boxplot to investigate the assumptions as they apply to the test of H0 Main Effect 2 (Factor C): Since Factor C is tested against the overall residual in this case, this is a relatively straight forward procedure.(HINT).
Any evidence of violations of the assumptions (y or n)?
Show code
> boxplot(SFREQBUC~O2LEVEL,mullens)
Construct a boxplot to investigate the assumptions as they apply to the test of H0 the main interaction effect (A:C): Since A:C is tested against the overal residual, this is a relatively straight forward procedure.(HINT).
Any evidence of violations of the assumptions (y or n)?
Show code
> boxplot(SFREQBUC~BREATH*O2LEVEL,mullens)
In addition to the above assumptions, the test of TOAD assumes that there is no TOAD by O2LEVEL interaction as this is the overal residual (the replicates).
That is, the test assumes that the effect of O2LEVEL is consistent in all TOADS.
Construct an interaction plot to examine whether there is any evidence of an interaction between TOAD and O2LEVEL
(HINT).
Any evidence of an interaction (y or n)?
Q4-3. Assume that the assumption of compound symmetry/sphericity will be violated and perform a
split-plot ANOVA (repeated measures)
(HINT),
and complete the following table with corrected p-values (HINT).
Anova Table (Type I tests)
Response: SFREQBUC
Error: TOAD
Df Sum Sq Mean Sq F value Pr(>F)
BREATH 1 39.9 39.9 5.76 0.027 *
Residuals 19 131.6 6.9
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
O2LEVEL 7 39.0 5.57 7.39 1.7e-07 ***
BREATH:O2LEVEL 7 56.4 8.05 10.69 1.2e-10 ***
Residuals 133 100.2 0.75
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Greenhouse-Geisser corrected ANOVA table
Response: SFREQBUC
Error: TOAD
Df Sum Sq Mean Sq F value Pr(>F)
BREATH 0.428 39.9 39.9 5.76 0.048 *
Residuals 19.000 131.6 6.9
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
O2LEVEL 3 39.0 5.57 7.39 0.00013 ***
BREATH:O2LEVEL 3 56.4 8.05 10.69 2.4e-06 ***
Residuals 133 100.2 0.75
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Huynh-Feldt corrected ANOVA table
Response: SFREQBUC
Error: TOAD
Df Sum Sq Mean Sq F value Pr(>F)
BREATH 0.517 39.9 39.9 5.76 0.044 *
Residuals 19.000 131.6 6.9
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
O2LEVEL 3.62 39.0 5.57 7.39 4.1e-05 ***
BREATH:O2LEVEL 3.62 56.4 8.05 10.69 4.2e-07 ***
Residuals 133.00 100.2 0.75
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Source of variation
df
Mean Sq
F-ratio
P-value
GG.P
HF.P
BREATH
 
 
TOAD
 
 
 
 
O2LEVEL
BREATH:O2LEVEL
Residuals
 
 
 
 
Q4-4.
Construct an interaction plot
showing the frequency of buccal breathing against oxygen level, with each breathing type as different lines (or different bars).
HINT