| cake {lme4} | R Documentation |
Data on the breakage angle of chocolate cakes made with different recipes and baked at different temperatures.
data(cake)
A data frame with 270 observations on the following 5 variables.
replicate1 to 15batch1, 2 and 3recipe1, 2 and 3temperature175 < 185 < 195 < 205 < 215 < 225angle
The replicate factor is nested within the branch factor.
Original data given in Cochran and Cox (1957).
Also cited in Lee, Nelder and Pawitan (2006)
str(cake)
print(fm1 <- lmer(angle ~ recipe * temperature + (1|replicate/batch), cake,
method = "ML"), corr = FALSE)
print(fm2 <- lmer(angle ~ recipe + temperature + (1|replicate/batch), cake,
method = "ML"), corr = FALSE)
print(fm3 <- lmer(angle ~ recipe + as.numeric(temperature) +
(1|replicate/batch), cake, method = "ML"), corr = FALSE)
anova(fm3, fm2, fm1)