forked from vincentarelbundock/Rdatasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleuk.html
101 lines (74 loc) · 2.65 KB
/
leuk.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
101
<!DOCTYPE html><html><head><title>R: Survival Times and White Blood Counts for Leukaemia Patients</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>leuk</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>
Survival Times and White Blood Counts for Leukaemia Patients
</h2>
<h3>Description</h3>
<p>A data frame of data from 33 leukaemia patients.
</p>
<h3>Usage</h3>
<pre><code class='language-R'>leuk
</code></pre>
<h3>Format</h3>
<p>A data frame with columns:
</p>
<dl>
<dt><code>wbc</code></dt><dd>
<p>white blood count.
</p>
</dd>
<dt><code>ag</code></dt><dd>
<p>a test result, <code>"present"</code> or <code>"absent"</code>.
</p>
</dd>
<dt><code>time</code></dt><dd>
<p>survival time in weeks.
</p>
</dd>
</dl>
<h3>Details</h3>
<p>Survival times are given for 33 patients who died from acute
myelogenous leukaemia. Also measured was the patient's white blood cell
count at the time of diagnosis. The patients were also factored into 2
groups according to the presence or absence of a morphologic
characteristic of white blood cells. Patients termed AG positive were
identified by the presence of Auer rods and/or significant granulation
of the leukaemic cells in the bone marrow at the time of diagnosis.
</p>
<h3>Source</h3>
<p>Cox, D. R. and Oakes, D. (1984) <em>Analysis of Survival Data</em>.
Chapman & Hall, p. 9.
</p>
<p>Taken from
</p>
<p>Feigl, P. & Zelen, M. (1965) Estimation of exponential survival
probabilities with concomitant information.
<em>Biometrics</em> <b>21</b>, 826–838.
</p>
<h3>References</h3>
<p>Venables, W. N. and Ripley, B. D. (2002)
<em>Modern Applied Statistics with S.</em> Fourth edition. Springer.
</p>
<h3>Examples</h3>
<pre><code class='language-R'>library(survival)
plot(survfit(Surv(time) ~ ag, data = leuk), lty = 2:3, col = 2:3)
# now Cox models
leuk.cox <- coxph(Surv(time) ~ ag + log(wbc), leuk)
summary(leuk.cox)
</code></pre>
</div>
</body></html>