diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-04-08 07:16:31 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-04-08 07:18:11 +0200 |
commit | 40979ea0a74bbbfade1ce299415605f64215c0a4 (patch) | |
tree | 9a13c7e0dcbb0a5c2abbddbb03afe8bbb828896f /docs/reference | |
parent | 8596a3e82235385b5de50cc5a722ccb68247f084 (diff) |
Revert version as 0.2.2 is unreleased, update docs
Diffstat (limited to 'docs/reference')
-rw-r--r-- | docs/reference/Rplot001.png | bin | 0 -> 1011 bytes | |||
-rw-r--r-- | docs/reference/calplot.lm-1.png | bin | 73061 -> 71915 bytes | |||
-rw-r--r-- | docs/reference/calplot.lm.html | 26 | ||||
-rw-r--r-- | docs/reference/din32645-1.png | bin | 71417 -> 70087 bytes | |||
-rw-r--r-- | docs/reference/din32645.html | 39 | ||||
-rw-r--r-- | docs/reference/index.html | 6 | ||||
-rw-r--r-- | docs/reference/inverse.predict.html | 43 | ||||
-rw-r--r-- | docs/reference/lod.html | 16 | ||||
-rw-r--r-- | docs/reference/loq.html | 18 | ||||
-rw-r--r-- | docs/reference/massart97ex1.html | 8 | ||||
-rw-r--r-- | docs/reference/massart97ex3.html | 47 | ||||
-rw-r--r-- | docs/reference/rl95_cadmium.html | 6 | ||||
-rw-r--r-- | docs/reference/rl95_toluene.html | 6 | ||||
-rw-r--r-- | docs/reference/utstats14.html | 6 |
14 files changed, 126 insertions, 95 deletions
diff --git a/docs/reference/Rplot001.png b/docs/reference/Rplot001.png Binary files differnew file mode 100644 index 0000000..17a3580 --- /dev/null +++ b/docs/reference/Rplot001.png diff --git a/docs/reference/calplot.lm-1.png b/docs/reference/calplot.lm-1.png Binary files differindex 4d620ee..5d4c4d9 100644 --- a/docs/reference/calplot.lm-1.png +++ b/docs/reference/calplot.lm-1.png diff --git a/docs/reference/calplot.lm.html b/docs/reference/calplot.lm.html index 7822b7e..fb329f6 100644 --- a/docs/reference/calplot.lm.html +++ b/docs/reference/calplot.lm.html @@ -81,7 +81,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -98,7 +98,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -125,8 +125,9 @@ as confidence, and, for unweighted regression, prediction bands.</p> </div> - <pre class="usage"><span class='fu'>calplot</span>(<span class='no'>object</span>, <span class='kw'>xlim</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"auto"</span>, <span class='st'>"auto"</span>), <span class='kw'>ylim</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"auto"</span>, <span class='st'>"auto"</span>), - <span class='kw'>xlab</span> <span class='kw'>=</span> <span class='st'>"Concentration"</span>, <span class='kw'>ylab</span> <span class='kw'>=</span> <span class='st'>"Response"</span>, <span class='kw'>alpha</span><span class='kw'>=</span><span class='fl'>0.05</span>, <span class='kw'>varfunc</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</pre> + <pre class="usage"><span class='fu'>calplot</span><span class='op'>(</span><span class='va'>object</span>, xlim <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"auto"</span>, <span class='st'>"auto"</span><span class='op'>)</span>, ylim <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"auto"</span>, <span class='st'>"auto"</span><span class='op'>)</span>, + xlab <span class='op'>=</span> <span class='st'>"Concentration"</span>, ylab <span class='op'>=</span> <span class='st'>"Response"</span>, legend_x <span class='op'>=</span> <span class='st'>"auto"</span>, + alpha<span class='op'>=</span><span class='fl'>0.05</span>, varfunc <span class='op'>=</span> <span class='cn'>NULL</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2> <table class="ref-arguments"> @@ -154,6 +155,10 @@ <td><p>The label of the y axis.</p></td> </tr> <tr> + <th>legend_x</th> + <td><p>An optional numeric value for adjusting the x coordinate of the legend.</p></td> + </tr> + <tr> <th>alpha</th> <td><p>The error tolerance level for the confidence and prediction bands. Note that this includes both tails of the Gaussian distribution, unlike the alpha and beta parameters @@ -181,11 +186,16 @@ <p>It is possible to compare the <code>calplot</code> prediction bands with the <code><a href='lod.html'>lod</a></code> values if the <code><a href='lod.html'>lod()</a></code> alpha and beta parameters are half the value of the <code>calplot()</code> alpha parameter.</p> + <h2 class="hasAnchor" id="author"><a class="anchor" href="#author"></a>Author</h2> + + <p>Johannes Ranke + <a href='mailto:jranke@uni-bremen.de'>jranke@uni-bremen.de</a></p> <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> - <pre class="examples"><div class='input'><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span>(<span class='no'>massart97ex3</span>) -<span class='no'>m</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex3</span>) -<span class='fu'>calplot</span>(<span class='no'>m</span>)</div><div class='img'><img src='calplot.lm-1.png' alt='' width='700' height='433' /></div></pre> + <pre class="examples"><div class='input'><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span><span class='op'>(</span><span class='va'>massart97ex3</span><span class='op'>)</span> +<span class='va'>m</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>massart97ex3</span><span class='op'>)</span> +<span class='fu'>calplot</span><span class='op'>(</span><span class='va'>m</span><span class='op'>)</span> +</div><div class='img'><img src='calplot.lm-1.png' alt='' width='700' height='433' /></div></pre> </div> <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> <nav id="toc" data-toggle="toc" class="sticky-top"> @@ -201,7 +211,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/din32645-1.png b/docs/reference/din32645-1.png Binary files differindex cee27e9..27914e8 100644 --- a/docs/reference/din32645-1.png +++ b/docs/reference/din32645-1.png diff --git a/docs/reference/din32645.html b/docs/reference/din32645.html index 6af5152..b3ae61c 100644 --- a/docs/reference/din32645.html +++ b/docs/reference/din32645.html @@ -80,7 +80,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -97,7 +97,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -123,7 +123,7 @@ <p>Sample dataset to test the package.</p> </div> - <pre class="usage"><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span>(<span class='no'>din32645</span>)</pre> + <pre class="usage"><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span><span class='op'>(</span><span class='va'>din32645</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2> @@ -140,35 +140,42 @@ Analytica Chimica Acta 391, 105 - 126.</p> <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> - <pre class="examples"><div class='input'><span class='no'>m</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>din32645</span>) -<span class='fu'><a href='calplot.lm.html'>calplot</a></span>(<span class='no'>m</span>)</div><div class='img'><img src='din32645-1.png' alt='' width='700' height='433' /></div><div class='input'> + <pre class="examples"><div class='input'><span class='va'>m</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>din32645</span><span class='op'>)</span> +<span class='fu'><a href='calplot.html'>calplot</a></span><span class='op'>(</span><span class='va'>m</span><span class='op'>)</span> +</div><div class='img'><img src='din32645-1.png' alt='' width='700' height='433' /></div><div class='input'> <span class='co'>## Prediction of x with confidence interval</span> -<span class='no'>prediction</span> <span class='kw'><-</span> <span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span>(<span class='no'>m</span>, <span class='fl'>3500</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>) +<span class='va'>prediction</span> <span class='op'><-</span> <span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span><span class='op'>(</span><span class='va'>m</span>, <span class='fl'>3500</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span><span class='op'>)</span> <span class='co'># This should give 0.07434 according to test data from Dintest, which </span> <span class='co'># was collected from Procontrol 3.1 (isomehr GmbH) in this case</span> -<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='no'>prediction</span>$<span class='no'>Confidence</span>, <span class='fl'>5</span>)</div><div class='output co'>#> [1] 0.07434</div><div class='input'> +<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='va'>prediction</span><span class='op'>$</span><span class='va'>Confidence</span>, <span class='fl'>5</span><span class='op'>)</span> +</div><div class='output co'>#> [1] 0.07434</div><div class='input'> <span class='co'>## Critical value:</span> -<span class='no'>crit</span> <span class='kw'><-</span> <span class='fu'><a href='lod.html'>lod</a></span>(<span class='no'>m</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>, <span class='kw'>beta</span> <span class='kw'>=</span> <span class='fl'>0.5</span>) +<span class='va'>crit</span> <span class='op'><-</span> <span class='fu'><a href='lod.html'>lod</a></span><span class='op'>(</span><span class='va'>m</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span>, beta <span class='op'>=</span> <span class='fl'>0.5</span><span class='op'>)</span> <span class='co'># According to DIN 32645, we should get 0.07 for the critical value</span> <span class='co'># (decision limit, "Nachweisgrenze")</span> -<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='no'>crit</span>$<span class='no'>x</span>, <span class='fl'>2</span>)</div><div class='output co'>#> [1] 0.07</div><div class='input'><span class='co'># and according to Dintest test data, we should get 0.0698 from</span> -<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='no'>crit</span>$<span class='no'>x</span>, <span class='fl'>4</span>)</div><div class='output co'>#> [1] 0.0698</div><div class='input'> +<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='va'>crit</span><span class='op'>$</span><span class='va'>x</span>, <span class='fl'>2</span><span class='op'>)</span> +</div><div class='output co'>#> [1] 0.07</div><div class='input'><span class='co'># and according to Dintest test data, we should get 0.0698 from</span> +<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='va'>crit</span><span class='op'>$</span><span class='va'>x</span>, <span class='fl'>4</span><span class='op'>)</span> +</div><div class='output co'>#> [1] 0.0698</div><div class='input'> <span class='co'>## Limit of detection (smallest detectable value given alpha and beta)</span> <span class='co'># In German, the smallest detectable value is the "Erfassungsgrenze", and we</span> <span class='co'># should get 0.14 according to DIN, which we achieve by using the method </span> <span class='co'># described in it:</span> -<span class='no'>lod.din</span> <span class='kw'><-</span> <span class='fu'><a href='lod.html'>lod</a></span>(<span class='no'>m</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>, <span class='kw'>beta</span> <span class='kw'>=</span> <span class='fl'>0.01</span>, <span class='kw'>method</span> <span class='kw'>=</span> <span class='st'>"din"</span>) -<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='no'>lod.din</span>$<span class='no'>x</span>, <span class='fl'>2</span>)</div><div class='output co'>#> [1] 0.14</div><div class='input'> +<span class='va'>lod.din</span> <span class='op'><-</span> <span class='fu'><a href='lod.html'>lod</a></span><span class='op'>(</span><span class='va'>m</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span>, beta <span class='op'>=</span> <span class='fl'>0.01</span>, method <span class='op'>=</span> <span class='st'>"din"</span><span class='op'>)</span> +<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='va'>lod.din</span><span class='op'>$</span><span class='va'>x</span>, <span class='fl'>2</span><span class='op'>)</span> +</div><div class='output co'>#> [1] 0.14</div><div class='input'> <span class='co'>## Limit of quantification</span> <span class='co'># This accords to the test data coming with the test data from Dintest again, </span> <span class='co'># except for the last digits of the value cited for Procontrol 3.1 (0.2121)</span> -<span class='no'>loq</span> <span class='kw'><-</span> <span class='fu'><a href='loq.html'>loq</a></span>(<span class='no'>m</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>) -<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='no'>loq</span>$<span class='no'>x</span>, <span class='fl'>4</span>)</div><div class='output co'>#> [1] 0.212</div><div class='input'> +<span class='va'>loq</span> <span class='op'><-</span> <span class='fu'><a href='loq.html'>loq</a></span><span class='op'>(</span><span class='va'>m</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span><span class='op'>)</span> +<span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='va'>loq</span><span class='op'>$</span><span class='va'>x</span>, <span class='fl'>4</span><span class='op'>)</span> +</div><div class='output co'>#> [1] 0.212</div><div class='input'> <span class='co'># A similar value is obtained using the approximation </span> <span class='co'># LQ = 3.04 * LC (Currie 1999, p. 120)</span> -<span class='fl'>3.04</span> * <span class='fu'><a href='lod.html'>lod</a></span>(<span class='no'>m</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>, <span class='kw'>beta</span> <span class='kw'>=</span> <span class='fl'>0.5</span>)$<span class='no'>x</span></div><div class='output co'>#> [1] 0.2122306</div></pre> +<span class='fl'>3.04</span> <span class='op'>*</span> <span class='fu'><a href='lod.html'>lod</a></span><span class='op'>(</span><span class='va'>m</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span>, beta <span class='op'>=</span> <span class='fl'>0.5</span><span class='op'>)</span><span class='op'>$</span><span class='va'>x</span> +</div><div class='output co'>#> [1] 0.2122306</div></pre> </div> <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> <nav id="toc" data-toggle="toc" class="sticky-top"> @@ -184,7 +191,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/index.html b/docs/reference/index.html index d68dbd9..ea1ff81 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -79,7 +79,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -96,7 +96,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -215,7 +215,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/inverse.predict.html b/docs/reference/inverse.predict.html index 3c4c867..0ea86a3 100644 --- a/docs/reference/inverse.predict.html +++ b/docs/reference/inverse.predict.html @@ -89,7 +89,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -106,7 +106,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -141,8 +141,8 @@ This is elaborated in the package vignette.</p> </div> - <pre class="usage"><span class='fu'>inverse.predict</span>(<span class='no'>object</span>, <span class='no'>newdata</span>, <span class='no'>...</span>, - <span class='no'>ws</span>, <span class='kw'>alpha</span><span class='kw'>=</span><span class='fl'>0.05</span>, <span class='kw'>var.s</span> <span class='kw'>=</span> <span class='st'>"auto"</span>)</pre> + <pre class="usage"><span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>object</span>, <span class='va'>newdata</span>, <span class='va'>...</span>, + <span class='va'>ws</span>, alpha<span class='op'>=</span><span class='fl'>0.05</span>, var.s <span class='op'>=</span> <span class='st'>"auto"</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2> <table class="ref-arguments"> @@ -199,8 +199,9 @@ <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> <pre class="examples"><div class='input'><span class='co'># This is example 7 from Chapter 8 in Massart et al. (1997)</span> -<span class='no'>m</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex1</span>) -<span class='fu'>inverse.predict</span>(<span class='no'>m</span>, <span class='fl'>15</span>) <span class='co'># 6.1 +- 4.9</span></div><div class='output co'>#> $Prediction +<span class='va'>m</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>massart97ex1</span><span class='op'>)</span> +<span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>m</span>, <span class='fl'>15</span><span class='op'>)</span> <span class='co'># 6.1 +- 4.9</span> +</div><div class='output co'>#> $Prediction #> [1] 6.09381 #> #> $`Standard Error` @@ -211,7 +212,8 @@ #> #> $`Confidence Limits` #> [1] 1.187059 11.000561 -#> </div><div class='input'><span class='fu'>inverse.predict</span>(<span class='no'>m</span>, <span class='fl'>90</span>) <span class='co'># 43.9 +- 4.9</span></div><div class='output co'>#> $Prediction +#> </div><div class='input'><span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>m</span>, <span class='fl'>90</span><span class='op'>)</span> <span class='co'># 43.9 +- 4.9</span> +</div><div class='output co'>#> $Prediction #> [1] 43.93983 #> #> $`Standard Error` @@ -222,7 +224,8 @@ #> #> $`Confidence Limits` #> [1] 39.03178 48.84788 -#> </div><div class='input'><span class='fu'>inverse.predict</span>(<span class='no'>m</span>, <span class='fu'><a href='https://rdrr.io/r/base/rep.html'>rep</a></span>(<span class='fl'>90</span>,<span class='fl'>5</span>)) <span class='co'># 43.9 +- 3.2</span></div><div class='output co'>#> $Prediction +#> </div><div class='input'><span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>m</span>, <span class='fu'><a href='https://rdrr.io/r/base/rep.html'>rep</a></span><span class='op'>(</span><span class='fl'>90</span>,<span class='fl'>5</span><span class='op'>)</span><span class='op'>)</span> <span class='co'># 43.9 +- 3.2</span> +</div><div class='output co'>#> $Prediction #> [1] 43.93983 #> #> $`Standard Error` @@ -236,18 +239,19 @@ #> </div><div class='input'> <span class='co'># For reproducing the results for replicate standard measurements in example 8,</span> <span class='co'># we need to do the calibration on the means when using chemCal > 0.2</span> -<span class='no'>weights</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/with.html'>with</a></span>(<span class='no'>massart97ex3</span>, { - <span class='no'>yx</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/split.html'>split</a></span>(<span class='no'>y</span>, <span class='no'>x</span>) - <span class='no'>ybar</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span>(<span class='no'>yx</span>, <span class='no'>mean</span>) - <span class='no'>s</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span>(<span class='no'>yx</span>, <span class='no'>sd</span>), <span class='kw'>digits</span> <span class='kw'>=</span> <span class='fl'>2</span>) - <span class='no'>w</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='fl'>1</span> / (<span class='no'>s</span>^<span class='fl'>2</span>), <span class='kw'>digits</span> <span class='kw'>=</span> <span class='fl'>3</span>) -}) +<span class='va'>weights</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/with.html'>with</a></span><span class='op'>(</span><span class='va'>massart97ex3</span>, <span class='op'>{</span> + <span class='va'>yx</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/split.html'>split</a></span><span class='op'>(</span><span class='va'>y</span>, <span class='va'>x</span><span class='op'>)</span> + <span class='va'>ybar</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span><span class='op'>(</span><span class='va'>yx</span>, <span class='va'>mean</span><span class='op'>)</span> + <span class='va'>s</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span><span class='op'>(</span><span class='va'>yx</span>, <span class='va'>sd</span><span class='op'>)</span>, digits <span class='op'>=</span> <span class='fl'>2</span><span class='op'>)</span> + <span class='va'>w</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='fl'>1</span> <span class='op'>/</span> <span class='op'>(</span><span class='va'>s</span><span class='op'>^</span><span class='fl'>2</span><span class='op'>)</span>, digits <span class='op'>=</span> <span class='fl'>3</span><span class='op'>)</span> +<span class='op'>}</span><span class='op'>)</span> -<span class='no'>massart97ex3.means</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/aggregate.html'>aggregate</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='no'>massart97ex3</span>, <span class='no'>mean</span>) +<span class='va'>massart97ex3.means</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/aggregate.html'>aggregate</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, <span class='va'>massart97ex3</span>, <span class='va'>mean</span><span class='op'>)</span> -<span class='no'>m3.means</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>w</span> <span class='kw'>=</span> <span class='no'>weights</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex3.means</span>) +<span class='va'>m3.means</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, w <span class='op'>=</span> <span class='va'>weights</span>, data <span class='op'>=</span> <span class='va'>massart97ex3.means</span><span class='op'>)</span> -<span class='fu'>inverse.predict</span>(<span class='no'>m3.means</span>, <span class='fl'>15</span>, <span class='kw'>ws</span> <span class='kw'>=</span> <span class='fl'>1.67</span>) <span class='co'># 5.9 +- 2.5</span></div><div class='output co'>#> $Prediction +<span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>m3.means</span>, <span class='fl'>15</span>, ws <span class='op'>=</span> <span class='fl'>1.67</span><span class='op'>)</span> <span class='co'># 5.9 +- 2.5</span> +</div><div class='output co'>#> $Prediction #> [1] 5.865367 #> #> $`Standard Error` @@ -258,7 +262,8 @@ #> #> $`Confidence Limits` #> [1] 3.387082 8.343652 -#> </div><div class='input'><span class='fu'>inverse.predict</span>(<span class='no'>m3.means</span>, <span class='fl'>90</span>, <span class='kw'>ws</span> <span class='kw'>=</span> <span class='fl'>0.145</span>) <span class='co'># 44.1 +- 7.9</span></div><div class='output co'>#> $Prediction +#> </div><div class='input'><span class='fu'>inverse.predict</span><span class='op'>(</span><span class='va'>m3.means</span>, <span class='fl'>90</span>, ws <span class='op'>=</span> <span class='fl'>0.145</span><span class='op'>)</span> <span class='co'># 44.1 +- 7.9</span> +</div><div class='output co'>#> $Prediction #> [1] 44.06025 #> #> $`Standard Error` @@ -286,7 +291,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/lod.html b/docs/reference/lod.html index e5a1158..f647e8c 100644 --- a/docs/reference/lod.html +++ b/docs/reference/lod.html @@ -87,7 +87,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -104,7 +104,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -137,7 +137,7 @@ one-sided significance test).</p> </div> - <pre class="usage"><span class='fu'>lod</span>(<span class='no'>object</span>, <span class='no'>...</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>beta</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>method</span> <span class='kw'>=</span> <span class='st'>"default"</span>, <span class='kw'>tol</span> <span class='kw'>=</span> <span class='st'>"default"</span>)</pre> + <pre class="usage"><span class='fu'>lod</span><span class='op'>(</span><span class='va'>object</span>, <span class='va'>...</span>, alpha <span class='op'>=</span> <span class='fl'>0.05</span>, beta <span class='op'>=</span> <span class='fl'>0.05</span>, method <span class='op'>=</span> <span class='st'>"default"</span>, tol <span class='op'>=</span> <span class='st'>"default"</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2> <table class="ref-arguments"> @@ -207,8 +207,9 @@ <div class='dont-index'><p>Examples for <code><a href='din32645.html'>din32645</a></code></p></div> <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> - <pre class="examples"><div class='input'><span class='no'>m</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>din32645</span>) -<span class='fu'>lod</span>(<span class='no'>m</span>)</div><div class='output co'>#> $x + <pre class="examples"><div class='input'><span class='va'>m</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>din32645</span><span class='op'>)</span> +<span class='fu'>lod</span><span class='op'>(</span><span class='va'>m</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 0.08655484 #> #> $y @@ -216,7 +217,8 @@ #> </div><div class='input'> <span class='co'># The critical value (decision limit, German Nachweisgrenze) can be obtained</span> <span class='co'># by using beta = 0.5:</span> -<span class='fu'>lod</span>(<span class='no'>m</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.01</span>, <span class='kw'>beta</span> <span class='kw'>=</span> <span class='fl'>0.5</span>)</div><div class='output co'>#> $x +<span class='fu'>lod</span><span class='op'>(</span><span class='va'>m</span>, alpha <span class='op'>=</span> <span class='fl'>0.01</span>, beta <span class='op'>=</span> <span class='fl'>0.5</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 0.0698127 #> #> $y @@ -237,7 +239,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/loq.html b/docs/reference/loq.html index 2c7dc6a..6515e41 100644 --- a/docs/reference/loq.html +++ b/docs/reference/loq.html @@ -86,7 +86,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -103,7 +103,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -135,8 +135,8 @@ <code><a href='inverse.predict.html'>inverse.predict</a></code>, and L is obtained by iteration.</p> </div> - <pre class="usage"><span class='fu'>loq</span>(<span class='no'>object</span>, <span class='no'>...</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>k</span> <span class='kw'>=</span> <span class='fl'>3</span>, <span class='kw'>n</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>w.loq</span> <span class='kw'>=</span> <span class='st'>"auto"</span>, - <span class='kw'>var.loq</span> <span class='kw'>=</span> <span class='st'>"auto"</span>, <span class='kw'>tol</span> <span class='kw'>=</span> <span class='st'>"default"</span>)</pre> + <pre class="usage"><span class='fu'>loq</span><span class='op'>(</span><span class='va'>object</span>, <span class='va'>...</span>, alpha <span class='op'>=</span> <span class='fl'>0.05</span>, k <span class='op'>=</span> <span class='fl'>3</span>, n <span class='op'>=</span> <span class='fl'>1</span>, w.loq <span class='op'>=</span> <span class='st'>"auto"</span>, + var.loq <span class='op'>=</span> <span class='st'>"auto"</span>, tol <span class='op'>=</span> <span class='st'>"default"</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2> <table class="ref-arguments"> @@ -204,15 +204,17 @@ <div class='dont-index'><p>Examples for <code><a href='din32645.html'>din32645</a></code></p></div> <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> - <pre class="examples"><div class='input'><span class='no'>m</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex1</span>) -<span class='fu'>loq</span>(<span class='no'>m</span>)</div><div class='output co'>#> $x + <pre class="examples"><div class='input'><span class='va'>m</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>massart97ex1</span><span class='op'>)</span> +<span class='fu'>loq</span><span class='op'>(</span><span class='va'>m</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 13.97764 #> #> $y #> [1] 30.6235 #> </div><div class='input'> <span class='co'># We can get better by using replicate measurements</span> -<span class='fu'>loq</span>(<span class='no'>m</span>, <span class='kw'>n</span> <span class='kw'>=</span> <span class='fl'>3</span>)</div><div class='output co'>#> $x +<span class='fu'>loq</span><span class='op'>(</span><span class='va'>m</span>, n <span class='op'>=</span> <span class='fl'>3</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 9.971963 #> #> $y @@ -233,7 +235,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/massart97ex1.html b/docs/reference/massart97ex1.html index 95e6b3f..60f43ab 100644 --- a/docs/reference/massart97ex1.html +++ b/docs/reference/massart97ex1.html @@ -80,7 +80,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -97,7 +97,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -123,7 +123,7 @@ <p>Sample dataset from p. 175 to test the package.</p> </div> - <pre class="usage"><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span>(<span class='no'>massart97ex1</span>)</pre> + <pre class="usage"><span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span><span class='op'>(</span><span class='va'>massart97ex1</span><span class='op'>)</span></pre> <h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2> @@ -150,7 +150,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/massart97ex3.html b/docs/reference/massart97ex3.html index a1efeba..13e28fd 100644 --- a/docs/reference/massart97ex3.html +++ b/docs/reference/massart97ex3.html @@ -80,7 +80,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -97,7 +97,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -123,7 +123,7 @@ <p>Sample dataset from p. 188 to test the package.</p> </div> - <pre class="usage"><span class='no'>massart97ex3</span></pre> + <pre class="usage"><span class='va'>massart97ex3</span></pre> <h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2> @@ -139,19 +139,20 @@ <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> <pre class="examples"><div class='input'><span class='co'># For reproducing the results for replicate standard measurements in example 8,</span> <span class='co'># we need to do the calibration on the means when using chemCal > 0.2</span> -<span class='no'>weights</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/with.html'>with</a></span>(<span class='no'>massart97ex3</span>, { - <span class='no'>yx</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/split.html'>split</a></span>(<span class='no'>y</span>, <span class='no'>x</span>) - <span class='no'>ybar</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span>(<span class='no'>yx</span>, <span class='no'>mean</span>) - <span class='no'>s</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span>(<span class='no'>yx</span>, <span class='no'>sd</span>), <span class='kw'>digits</span> <span class='kw'>=</span> <span class='fl'>2</span>) - <span class='no'>w</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span>(<span class='fl'>1</span> / (<span class='no'>s</span>^<span class='fl'>2</span>), <span class='kw'>digits</span> <span class='kw'>=</span> <span class='fl'>3</span>) -}) +<span class='va'>weights</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/with.html'>with</a></span><span class='op'>(</span><span class='va'>massart97ex3</span>, <span class='op'>{</span> + <span class='va'>yx</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/split.html'>split</a></span><span class='op'>(</span><span class='va'>y</span>, <span class='va'>x</span><span class='op'>)</span> + <span class='va'>ybar</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span><span class='op'>(</span><span class='va'>yx</span>, <span class='va'>mean</span><span class='op'>)</span> + <span class='va'>s</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>sapply</a></span><span class='op'>(</span><span class='va'>yx</span>, <span class='va'>sd</span><span class='op'>)</span>, digits <span class='op'>=</span> <span class='fl'>2</span><span class='op'>)</span> + <span class='va'>w</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/Round.html'>round</a></span><span class='op'>(</span><span class='fl'>1</span> <span class='op'>/</span> <span class='op'>(</span><span class='va'>s</span><span class='op'>^</span><span class='fl'>2</span><span class='op'>)</span>, digits <span class='op'>=</span> <span class='fl'>3</span><span class='op'>)</span> +<span class='op'>}</span><span class='op'>)</span> -<span class='no'>massart97ex3.means</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/aggregate.html'>aggregate</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='no'>massart97ex3</span>, <span class='no'>mean</span>) +<span class='va'>massart97ex3.means</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/aggregate.html'>aggregate</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, <span class='va'>massart97ex3</span>, <span class='va'>mean</span><span class='op'>)</span> -<span class='no'>m3.means</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>w</span> <span class='kw'>=</span> <span class='no'>weights</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex3.means</span>) +<span class='va'>m3.means</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, w <span class='op'>=</span> <span class='va'>weights</span>, data <span class='op'>=</span> <span class='va'>massart97ex3.means</span><span class='op'>)</span> <span class='co'># The following concords with the book p. 200</span> -<span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span>(<span class='no'>m3.means</span>, <span class='fl'>15</span>, <span class='kw'>ws</span> <span class='kw'>=</span> <span class='fl'>1.67</span>) <span class='co'># 5.9 +- 2.5</span></div><div class='output co'>#> $Prediction +<span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span><span class='op'>(</span><span class='va'>m3.means</span>, <span class='fl'>15</span>, ws <span class='op'>=</span> <span class='fl'>1.67</span><span class='op'>)</span> <span class='co'># 5.9 +- 2.5</span> +</div><div class='output co'>#> $Prediction #> [1] 5.865367 #> #> $`Standard Error` @@ -162,7 +163,8 @@ #> #> $`Confidence Limits` #> [1] 3.387082 8.343652 -#> </div><div class='input'><span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span>(<span class='no'>m3.means</span>, <span class='fl'>90</span>, <span class='kw'>ws</span> <span class='kw'>=</span> <span class='fl'>0.145</span>) <span class='co'># 44.1 +- 7.9</span></div><div class='output co'>#> $Prediction +#> </div><div class='input'><span class='fu'><a href='inverse.predict.html'>inverse.predict</a></span><span class='op'>(</span><span class='va'>m3.means</span>, <span class='fl'>90</span>, ws <span class='op'>=</span> <span class='fl'>0.145</span><span class='op'>)</span> <span class='co'># 44.1 +- 7.9</span> +</div><div class='output co'>#> $Prediction #> [1] 44.06025 #> #> $`Standard Error` @@ -176,15 +178,17 @@ #> </div><div class='input'> <span class='co'># The LOD is only calculated for models from unweighted regression</span> <span class='co'># with this version of chemCal</span> -<span class='no'>m0</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span>(<span class='no'>y</span> ~ <span class='no'>x</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='no'>massart97ex3</span>) -<span class='fu'><a href='lod.html'>lod</a></span>(<span class='no'>m0</span>)</div><div class='output co'>#> $x +<span class='va'>m0</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/r/stats/lm.html'>lm</a></span><span class='op'>(</span><span class='va'>y</span> <span class='op'>~</span> <span class='va'>x</span>, data <span class='op'>=</span> <span class='va'>massart97ex3</span><span class='op'>)</span> +<span class='fu'><a href='lod.html'>lod</a></span><span class='op'>(</span><span class='va'>m0</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 5.407085 #> #> $y #> [1] 13.63911 #> </div><div class='input'> <span class='co'># Limit of quantification from unweighted regression</span> -<span class='fu'><a href='loq.html'>loq</a></span>(<span class='no'>m0</span>)</div><div class='output co'>#> $x +<span class='fu'><a href='loq.html'>loq</a></span><span class='op'>(</span><span class='va'>m0</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 9.627349 #> #> $y @@ -195,14 +199,15 @@ <span class='co'># If we are not using a variance function, we can use the weight from</span> <span class='co'># the above example as a first approximation (x = 15 is close to our</span> <span class='co'># loq approx 14 from above).</span> -<span class='fu'><a href='loq.html'>loq</a></span>(<span class='no'>m3.means</span>, <span class='kw'>w.loq</span> <span class='kw'>=</span> <span class='fl'>1.67</span>)</div><div class='output co'>#> $x +<span class='fu'><a href='loq.html'>loq</a></span><span class='op'>(</span><span class='va'>m3.means</span>, w.loq <span class='op'>=</span> <span class='fl'>1.67</span><span class='op'>)</span> +</div><div class='output co'>#> $x #> [1] 7.346195 #> #> $y #> [1] 17.90777 -#> </div><div class='input'># The weight for the loq should therefore be derived at x = 7.3 instead -# of 15, but the graphical procedure of Massart (p. 201) to derive the -# variances on which the weights are based is quite inaccurate anyway. +#> </div><div class='input'><span class='co'># The weight for the loq should therefore be derived at x = 7.3 instead</span> +<span class='co'># of 15, but the graphical procedure of Massart (p. 201) to derive the </span> +<span class='co'># variances on which the weights are based is quite inaccurate anyway. </span> </div></pre> </div> <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> @@ -219,7 +224,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/rl95_cadmium.html b/docs/reference/rl95_cadmium.html index 509a0ab..c29ebae 100644 --- a/docs/reference/rl95_cadmium.html +++ b/docs/reference/rl95_cadmium.html @@ -80,7 +80,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -97,7 +97,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -149,7 +149,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/rl95_toluene.html b/docs/reference/rl95_toluene.html index f295d6d..9022e1e 100644 --- a/docs/reference/rl95_toluene.html +++ b/docs/reference/rl95_toluene.html @@ -82,7 +82,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -99,7 +99,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -153,7 +153,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> diff --git a/docs/reference/utstats14.html b/docs/reference/utstats14.html index c15f06d..8655c36 100644 --- a/docs/reference/utstats14.html +++ b/docs/reference/utstats14.html @@ -80,7 +80,7 @@ <ul class="nav navbar-nav"> <li> <a href="../index.html"> - <span class="fas fa fas fa-home fa-lg"></span> + <span class="fas fa-home fa-lg"></span> </a> </li> @@ -97,7 +97,7 @@ <ul class="nav navbar-nav navbar-right"> <li> <a href="http://github.com/jranke/chemCal/"> - <span class="fab fa fab fa-github fa-lg"></span> + <span class="fab fa-github fa-lg"></span> </a> </li> @@ -150,7 +150,7 @@ </div> <div class="pkgdown"> - <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> </div> </footer> |