aboutsummaryrefslogtreecommitdiff
path: root/docs/lod.html
blob: e5eb135e1885d196a055dc529fc901fe926b8fed (plain) (blame)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>lod. chemCal 0.1-37</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="">

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/highlight.css" rel="stylesheet">
<link href="css/staticdocs.css" rel="stylesheet">

<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
  </head>

  <body>
    <div class="navbar">
  <div class="navbar-inner">
    <div class="container">
      <a class="brand" href="index.html">chemCal 0.1-37</a>
      <div class="nav">
        <ul class="nav">
          <li><a href="index.html">Home</a></li>
          <li><a href="reference.html">Reference</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>


    <div class="container">
      <header>
        
      </header>
      
      <h1>Estimate a limit of detection (LOD)</h1>

<div class="row">
  <div class="span8">
    <h2>Usage</h2>
    <pre><span class="functioncall"><a href='lod.html'>lod</a></span><span class="keyword">(</span><span class="symbol">object</span><span class="keyword">,</span> <span class="symbol">...</span><span class="keyword">,</span> <span class="argument">alpha</span>&nbsp;<span class="argument">=</span>&nbsp;<span class="number">0.05</span><span class="keyword">,</span> <span class="argument">beta</span>&nbsp;<span class="argument">=</span>&nbsp;<span class="number">0.05</span><span class="keyword">,</span> <span class="argument">method</span>&nbsp;<span class="argument">=</span>&nbsp;<span class="string">"default"</span><span class="keyword">,</span> <span class="argument">tol</span>&nbsp;<span class="argument">=</span>&nbsp;<span class="string">"default"</span><span class="keyword">)</span></pre>
    
    <h2>Arguments</h2>
    <dl>
      <dt>object</dt>
      <dd>
    A univariate model object of class <code><a href='http://www.rdocumentation.org/packages/stats/topics/lm'>lm</a></code> or 
    <code><a href='http://www.rdocumentation.org/packages/MASS/topics/rlm'>rlm</a></code> 
    with model formula <code>y ~ x</code> or <code>y ~ x - 1</code>, 
    optionally from a weighted regression.
  </dd>
      <dt>...</dt>
      <dd>
    Placeholder for further arguments that might be needed by 
    future implementations.
  </dd>
      <dt>alpha</dt>
      <dd>
    The error tolerance for the decision limit (critical value).
  </dd>
      <dt>beta</dt>
      <dd>
    The error tolerance beta for the detection limit.
  </dd>
      <dt>method</dt>
      <dd>
    The &#147;default&#148; method uses a prediction interval at the LOD
    for the estimation of the LOD, which obviously requires
    iteration. This is described for example in Massart, p. 432 ff.
    The &#147;din&#148; method uses the prediction interval at
    x = 0 as an approximation.
  </dd>
      <dt>tol</dt>
      <dd>
    When the &#147;default&#148; method is used, the default tolerance
    for the LOD on the x scale is the value of the smallest non-zero standard
    divided by 1000. Can be set to a numeric value to override this.
  </dd>
    </dl>
    
    <div class="Value">
      <h2>Value</h2>

      <p><dl>
  A list containig the corresponding x and y values of the estimated limit of
  detection of a model used for calibration.  
</dl></p>

    </div>

    <div class="Description">
      <h2>Description</h2>

      <p>The decision limit (German: Nachweisgrenze) is defined as the signal or
  analyte concentration that is significantly different from the blank signal
  with a first order error alpha (one-sided significance test).
  The detection limit, or more precise, the minimum detectable value 
  (German: Erfassungsgrenze), is then defined as the signal or analyte
  concentration where the probability that the signal is not detected although
  the analyte is present (type II or false negative error), is beta (also a
  one-sided significance test).</p>

    </div>

    <div class="Note">
      <h2>Note</h2>

      <p>- The default values for alpha and beta are the ones recommended by IUPAC.
  - The estimation of the LOD in terms of the analyte amount/concentration
    xD from the LOD in the signal domain SD is done by simply inverting the
    calibration function (i.e. assuming a known calibration function).
  - The calculation of a LOD from weighted calibration models requires
    a weights argument for the internally used <code><a href='http://www.rdocumentation.org/packages/stats/topics/predict.lm'>predict.lm</a></code>
    function, which is currently not supported in R.</p>

    </div>

    <div class="References">
      <h2>References</h2>

      <p>Massart, L.M, Vandenginste, B.G.M., Buydens, L.M.C., De Jong, S., Lewi, P.J., 
  Smeyers-Verbeke, J. (1997) Handbook of Chemometrics and Qualimetrics: Part A,
  Chapter 13.7.8</p>

      <p>J. Inczedy, T. Lengyel, and A.M. Ure (2002) International Union of Pure and
  Applied Chemistry Compendium of Analytical Nomenclature: Definitive Rules.
  Web edition.</p>

      <p>Currie, L. A. (1997) Nomenclature in evaluation of analytical methods including
  detection and quantification capabilities (IUPAC Recommendations 1995). 
  Analytica Chimica Acta 391, 105 - 126.</p>

    </div>
    
    <h2 id="examples">Examples</h2>
    <pre class="examples"><div class='input'><span class="functioncall"><a href='http://www.rdocumentation.org/packages/utils/topics/data'>data</a></span><span class="keyword">(</span><span class="symbol">din32645</span><span class="keyword">)</span>
<span class="symbol">m</span> <span class="assignement">&lt;-</span> <span class="functioncall"><a href='http://www.rdocumentation.org/packages/stats/topics/lm'>lm</a></span><span class="keyword">(</span><span class="symbol">y</span> <span class="keyword">~</span> <span class="symbol">x</span><span class="keyword">,</span> <span class="argument">data</span> <span class="argument">=</span> <span class="symbol">din32645</span><span class="keyword">)</span>
<span class="functioncall"><a href='lod.html'>lod</a></span><span class="keyword">(</span><span class="symbol">m</span><span class="keyword">)</span></div>
<div class='output'>$x
[1] 0.08655484

$y
       1 
3317.154 

</div>
<div class='input'>
<span class="comment"># The critical value (decision limit, German Nachweisgrenze) can be obtained</span>
<span class="comment"># by using beta = 0.5:</span>
<span class="functioncall"><a href='lod.html'>lod</a></span><span class="keyword">(</span><span class="symbol">m</span><span class="keyword">,</span> <span class="argument">alpha</span> <span class="argument">=</span> <span class="number">0.01</span><span class="keyword">,</span> <span class="argument">beta</span> <span class="argument">=</span> <span class="number">0.5</span><span class="keyword">)</span></div>
<div class='output'>$x
[1] 0.0698127

$y
       1 
3155.393 

</div></pre>
  </div>
  <div class="span4 sidebar">
    <!-- <ul>
      <li>lod</li><li>lod.lm</li><li>lod.rlm</li><li>lod.default</li>
    </ul>
    <ul>
      <li>manip</li>
    </ul> -->

    <h2>See also</h2>
      <p>Examples for <code><a href='din32645.html'>din32645</a></code></p>

    


  </div>
</div>
      
      <footer>
      <p class="pull-right"><a href="#">Back to top</a></p>
<p>Built by <a href="https://github.com/hadley/staticdocs">staticdocs</a>. Styled with <a href="https://getbootstrap.com/2.0.4/">bootstrap</a>.</p>
      </footer>
    </div>
  </body>
</html>

Contact - Imprint