Learn R Programming

SMPracticals (version 1.4-3.1)

arithmetic: Teaching Arithmetic Data

Description

45 school pupils were divided at random into 5 groups of size 9. Groups A and B were taught arithmetic in separate classes by the usual method. Groups C, D, and E were taught together for several days. On each day group C were publically praised, group D were publically reproved, and group E were ignored. The responses are from a standard test taken by all pupils at the end of the period.

Usage

data(arithmetic)

Arguments

Format

A data frame with 45 observations on the following 2 variables.

group

a factor with levels A B C D E

y

a numeric vector

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 427.

Examples

Run this code
data(arithmetic)
attach(arithmetic)
plot(y~group)
anova(lm(y~group,data=arithmetic))
summary(lm(y~group,data=arithmetic))  # two different parametrisations
summary(lm(y~group-1,data=arithmetic)) # for ANOVA

Run the code above in your browser using DataLab