cake {lme4}R Documentation

Breakage angle of chocolate cakes

Description

Data on the breakage angle of chocolate cakes made with different recipes and baked at different temperatures.

Usage

data(cake)

Format

A data frame with 270 observations on the following 5 variables.

replicate
a factor with levels 1 to 15
batch
a factor with levels 1, 2 and 3
recipe
a factor with levels 1, 2 and 3
temperature
an ordered factor with levels 175 < 185 < 195 < 205 < 215 < 225
angle
a numeric vector giving the angle at which the cake broke.

Details

The replicate factor is nested within the branch factor.

Source

Original data given in Cochran and Cox (1957).

References

Also cited in Lee, Nelder and Pawitan (2006)

Examples

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)

[Package lme4 version 0.9975-13 Index]