forked from vincentarelbundock/Rdatasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cake.html
100 lines (76 loc) · 3.3 KB
/
cake.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html><html><head><title>R: Breakage Angle of Chocolate Cakes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css">
<script type="text/javascript">
const macros = { "\\R": "\\textsf{R}", "\\code": "\\texttt"};
function processMathHTML() {
var l = document.getElementsByClassName('reqn');
for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); }
return;
}</script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
onload="processMathHTML();"></script>
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<table style="width: 100%;"><tr><td>cake</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>Breakage Angle of Chocolate Cakes</h2>
<h3>Description</h3>
<p>Data on the breakage angle of chocolate cakes made with
three different recipes and baked at six different
temperatures. This is a split-plot design with the
recipes being whole-units and the different temperatures
being applied to sub-units (within replicates). The
experimental notes suggest that the replicate numbering
represents temporal ordering.
</p>
<h3>Format</h3>
<p>A data frame with 270 observations on the following 5 variables.
</p>
<dl>
<dt><code>replicate</code></dt><dd><p>a factor with levels <code>1</code> to <code>15</code></p>
</dd>
<dt><code>recipe</code></dt><dd><p>a factor with levels <code>A</code>, <code>B</code> and <code>C</code></p>
</dd>
<dt><code>temperature</code></dt><dd><p>an ordered factor with levels <code>175</code>
< <code>185</code> < <code>195</code> < <code>205</code> < <code>215</code> < <code>225</code></p>
</dd>
<dt><code>angle</code></dt><dd><p>a numeric vector giving the angle at which the
cake broke.</p>
</dd>
<dt><code>temp</code></dt><dd><p>numeric value of the baking temperature (degrees F).</p>
</dd>
</dl>
<h3>Details</h3>
<p>The <code>replicate</code> factor is nested within the
<code>recipe</code> factor, and <code>temperature</code> is nested
within <code>replicate</code>.
</p>
<h3>Source</h3>
<p>Original data were presented in Cook (1938), and reported
in Cochran and Cox (1957, p. 300). Also cited in Lee,
Nelder and Pawitan (2006).
</p>
<h3>References</h3>
<p>Cook, F. E. (1938) <em>Chocolate cake, I. Optimum
baking temperature</em>. Master's Thesis, Iowa State College.
</p>
<p>Cochran, W. G., and Cox, G. M. (1957) <em>Experimental
designs</em>, 2nd Ed. New York, John Wiley & Sons.
</p>
<p>Lee, Y., Nelder, J. A., and Pawitan, Y. (2006)
<em>Generalized linear models with random effects.
Unified analysis via H-likelihood</em>. Boca Raton, Chapman
and Hall/CRC.
</p>
<h3>Examples</h3>
<pre><code class='language-R'>str(cake)
## 'temp' is continuous, 'temperature' an ordered factor with 6 levels
(fm1 <- lmer(angle ~ recipe * temperature + (1|recipe:replicate), cake, REML= FALSE))
(fm2 <- lmer(angle ~ recipe + temperature + (1|recipe:replicate), cake, REML= FALSE))
(fm3 <- lmer(angle ~ recipe + temp + (1|recipe:replicate), cake, REML= FALSE))
## and now "choose" :
anova(fm3, fm2, fm1)
</code></pre>
</div>
</body></html>