R/BSDA-package.R
Maze.Rd
Data for Exercise 10.13
Maze
A data frame/tibble with 32 observations on two variables
error scores for animals running through a maze under different conditions
a factor with levels CondA
,
CondB,
CondC
, and CondD
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(score ~ condition, data = Maze, col = rainbow(4))
anova(lm(score ~ condition, data = Maze))
#> Analysis of Variance Table
#>
#> Response: score
#> Df Sum Sq Mean Sq F value Pr(>F)
#> condition 3 287.75 95.917 27.903 1.465e-08 ***
#> Residuals 28 96.25 3.437
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1