forked from vincentarelbundock/Rdatasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaphnids.html
76 lines (48 loc) · 1.9 KB
/
daphnids.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Daphnia test</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" type="text/css" href="R.css" />
</head><body><div class="container">
<table width="100%" summary="page for daphnids"><tr><td>daphnids</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>Daphnia test</h2>
<h3>Description</h3>
<p>The number of immobile daphnids –in contrast to mobile daphnids– out of a total of 20 daphnids was counted
for several concentrations of a toxic substance.
</p>
<h3>Usage</h3>
<pre>data(daphnids)</pre>
<h3>Format</h3>
<p>A data frame with 16 observations on the following 4 variables.
</p>
<dl>
<dt><code>dose</code></dt><dd><p>a numeric vector</p>
</dd>
<dt><code>no</code></dt><dd><p>a numeric vector</p>
</dd>
<dt><code>total</code></dt><dd><p>a numeric vector</p>
</dd>
<dt><code>time</code></dt><dd><p>a factor with levels <code>24h</code> <code>48h</code></p>
</dd>
</dl>
<h3>Details</h3>
<p>The same daphnids were counted at 24h and later again at 48h.
</p>
<h3>Source</h3>
<p>Nina Cedergreen, Faculty of Life Sciences, University of Copenhagen, Denmark.
</p>
<h3>Examples</h3>
<pre>
## Fitting a model with different parameters
## for different curves
daphnids.m1 <- drm(no/total~dose, time, weights = total,
data = daphnids, fct = LL.2(), type = "binomial")
## Goodness-of-fit test
modelFit(daphnids.m1)
## Summary of the data
summary(daphnids.m1)
## Fitting a model with a common intercept parameter
daphnids.m2 <- drm(no/total~dose, time, weights = total,
data = daphnids, fct = LL.2(), type = "binomial",
pmodels = list(~1, ~time))
</pre>
</div></body></html>