| Distance | Taken.by.predators | Not.Taken.by.predators | Total |
|---|---|---|---|
| 15 cm | 63 | 87 | 150 |
| 100 cm | 48 | 102 | 150 |
| 200 cm | 32 | 118 | 150 |
| Total | 143 | 307 | 450 |
Is there an association between nest predation and how far an egg is dropped from the nest?
| Distance | Taken.by.predators | Not.Taken.by.predators | Total |
|---|---|---|---|
| 15 cm | 63 | 87 | 150 |
| 100 cm | 48 | 102 | 150 |
| 200 cm | 32 | 118 | 150 |
| Total | 143 | 307 | 450 |
\(H_0: p_{taken|15cm}= p_{taken|100cm}=p_{taken|200cm}\)
\(H_a:\) at least one of the proportions differs from the others.
For questions involving:
With 2 categories, equivalent to a test for a difference in means.
\(H_0: \mu_{OpenField}=\mu_{EarlyBrush}=\mu_{HeavyBrush}=\mu_{PinePlantation}\)
\(H_a:\) at least one of the means differs from the others
How can we evaluate these assumptions?
If we reject the null hypothesis, we may want to know…
We have “4 choose 2” = 6 possible comparisons
If tests are independent:
P(make a type I error) = \(\alpha \Rightarrow\) P(not make a type I error) = \(1-\alpha\)
P(not make a type I error on \(m\) tests) = \((1-\alpha)^m\)
P(make a type I error on at least 1 of \(m\) tests) = \(1-(1-\alpha)^m\)
Overall type I error rate = probability of making one or more type I errors when conducting multiple tests.
In our case, overall type I error rate = 1-(1-0.05)\(^6\) = 0.26
Some things we can do to control the overall type I error rate:
Only do pairwise tests if the overall ANOVA indicates some difference exists.
Only do a few important comparisons.
Consider using a smaller \(\alpha\) for each pairwise test
Several procedures are available (e.g., Bonferroni correction and others that are more powerful)
emmeans package in this lab\(\overline{\mbox{Pre-DDT } 2003-2004}, 1981\)
Note: DDT was banned in the US in 1972
In general, groups can have more than 1 letter (and groups may have more than one bar overhead). Consider a study with:
choose(3,2) in R)Stress reduction was greatest for mental, then physical, then medical treatment.
Mental (A) Physical (A,B) Medical (B)
\(\overline{Mental \overline{Physical}} \overline{Medical}\)