Learn R Programming

alr4 (version 1.0.7)

cakes: Cakes data

Description

Oehlert (2000, Example 19.3) provides data from a small experiment on baking packaged cake mixes.

Arguments

Format

A data frame with 14 observations on the following 4 variables.

block

a factor

X1

Baking time, minutes

X2

Baking temperature, degrees F

Y

Palatability score

References

Weisberg, S. (2014). Applied Linear Regression, 4th edition. Hoboken NJ: Wiley.

Examples

Run this code
head(cakes)
lm(Y~X1+X2+I(X1^2)+I(X2^2)+X1:X2, data=cakes)

Run the code above in your browser using DataLab