1-Way Completely Randomized ANOVA: James H. Steiger
1-Way Completely Randomized ANOVA: James H. Steiger
1-Way Completely Randomized ANOVA: James H. Steiger
An Introductory Example
The Basic Idea behind ANOVA
James H. Steiger
Calculation in R
Introduction
An Introductory Example
H0 : µ1 = µ2 = . . . = µk (1)
2 σ2 2 σ2
H0 : σM = H1 : σM > (2)
n n
Calculation in R
Calculation in R
It is vitally important that the factor variables are typed as
factors.
In this case, we are ready to go. The following simple
commands generate the ANOVA source table, as discussed
in your textbook.
> Group <- c(1,1,1,2,2,2,3,3,3)
> Score <- c(1,2,3,4,5,6,7,8,9)
> summary(aov(Score ~ factor(Group)))
Df Sum Sq Mean Sq F value Pr(>F)
factor(Group) 2 54 27 27 0.001 ***
Residuals 6 6 1
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
The F statistic has a value of 27.00, with 2 and 6 degrees
of freedom.
Remember that this is a 1-tailed test, so the critical value
with α = 0.05 is at the 0.95 quantile. To find the critical
value, we use
> qf(0.95,2,6)
[1] 5.143253