2024-11-13
Use the BirdCalcium dataset to:
Ca (blood calcium) depending on the bird Sex, Hormone condition, and their interaction using a two-way factorial ANOVA. Interpret the result of your analysis in context.Hormone.So we fail to meet the condition of equal variances? (The S condition)
The biggest SD not more than 2 times as large as the smallest SD is only a rule of thumb.
Levene’s test is an ANOVA to test the null hypothesis:
\[H_0 = \sigma^2_1=\sigma^2_2=\sigma^2_3=\sigma^2_4\] \[H_A= not\:all\:variances\:are\:equal\]
Levene's Test for Homogeneity of Variance (center = median)
Df F value Pr(>F)
group 3 0.3082 0.8191
20
Using Levene’s Test for homogeneity of variance, we fail to reject the null hypothesis, that is we fail to find evidence that the S condition is not met, \(F(3, 20)=0.31\), \(p = .819\). We can proceed as if this condition is met.
Let’s try it for the PigFeed data.
Levene's Test for Homogeneity of Variance (center = median)
Df F value Pr(>F)
group 3 1.8089 0.2235
8
Using Levene’s Test for homogeneity of variance, we fail to reject the null hypothesis, that is we fail to find evidence that the S condition is not met, \(F(3, 8)=1.81\), \(p = .224\). We can proceed as if this condition is met.
Tukey multiple comparisons of means
95% family-wise confidence level
Fit: aov(formula = Days ~ Diet, data = Leafhoppers)
$Diet
diff lwr upr p adj
Fructose-Control 0.2 -0.9148496 1.31485 0.8805808
Glucose-Control 0.8 -0.3148496 1.91485 0.1337642
Sucrose-Control 1.8 0.6851504 2.91485 0.0095276
Glucose-Fructose 0.6 -0.5148496 1.71485 0.2677272
Sucrose-Fructose 1.6 0.4851504 2.71485 0.0145912
Sucrose-Glucose 1.0 -0.1148496 2.11485 0.0703156
A plant breeder wishes to study the effects of soil drainage and variety of tulip bulbs on flower production. Twelve 3m by 10m experimental sites are available in the test garden–each is a .5m deep trench. You can manipulate soil drainage by changing the ratio of sand to clay for the soil you put in a trench. After talking to your collaborator, you decided that four different levels of soil drainage would suffice. You’ll be testing 15 different types of tulips, and measuring flower production in the spring.