diff options
| -rw-r--r-- | docs/articles/FOCUS_D.html | 6 | ||||
| -rw-r--r-- | docs/articles/FOCUS_L.html | 42 | ||||
| -rw-r--r-- | docs/articles/twa.html | 2 | ||||
| -rw-r--r-- | docs/articles/web_only/benchmarks.html | 20 | ||||
| -rw-r--r-- | docs/articles/web_only/compiled_models.html | 10 | ||||
| -rw-r--r-- | docs/reference/mkinfit.html | 28 | ||||
| -rw-r--r-- | docs/reference/mkinmod.html | 2 | ||||
| -rw-r--r-- | docs/reference/mkinpredict.html | 6 | ||||
| -rw-r--r-- | docs/reference/mmkin.html | 4 | ||||
| -rw-r--r-- | docs/reference/summary.mkinfit.html | 6 | ||||
| -rw-r--r-- | vignettes/mkin_benchmarks.rda | bin | 885 -> 880 bytes | |||
| -rw-r--r-- | vignettes/twa.Rmd | 8 | ||||
| -rw-r--r-- | vignettes/twa.html | 2 | 
13 files changed, 67 insertions, 69 deletions
| diff --git a/docs/articles/FOCUS_D.html b/docs/articles/FOCUS_D.html index c22eb2c3..53164ffd 100644 --- a/docs/articles/FOCUS_D.html +++ b/docs/articles/FOCUS_D.html @@ -170,8 +170,8 @@  <div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb11-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(fit)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:05 2019  -## Date of summary: Wed Sep 18 17:55:06 2019  +## Date of fit:     Wed Sep 18 18:24:07 2019  +## Date of summary: Wed Sep 18 18:24:08 2019   ##   ## Equations:  ## d_parent/dt = - k_parent_sink * parent - k_parent_m1 * parent @@ -179,7 +179,7 @@  ##   ## Model predictions using solution type deSolve   ##  -## Fitted using 389 model solutions performed in 1.003 s +## Fitted using 389 model solutions performed in 1.014 s  ##   ## Error model: Constant variance   ##  diff --git a/docs/articles/FOCUS_L.html b/docs/articles/FOCUS_L.html index 428ca84f..50c83db6 100644 --- a/docs/articles/FOCUS_L.html +++ b/docs/articles/FOCUS_L.html @@ -116,15 +116,15 @@  <a class="sourceLine" id="cb2-2" title="2"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(m.L1.SFO)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:08 2019  -## Date of summary: Wed Sep 18 17:55:08 2019  +## Date of fit:     Wed Sep 18 18:24:09 2019  +## Date of summary: Wed Sep 18 18:24:09 2019   ##   ## Equations:  ## d_parent/dt = - k_parent_sink * parent  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 133 model solutions performed in 0.293 s +## Fitted using 133 model solutions performed in 0.287 s  ##   ## Error model: Constant variance   ##  @@ -218,8 +218,8 @@  ## finite result is doubtful</code></pre>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:10 2019  -## Date of summary: Wed Sep 18 17:55:10 2019  +## Date of fit:     Wed Sep 18 18:24:12 2019  +## Date of summary: Wed Sep 18 18:24:12 2019   ##   ##   ## Warning: Optimisation did not converge: @@ -231,7 +231,7 @@  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 899 model solutions performed in 1.914 s +## Fitted using 899 model solutions performed in 1.954 s  ##   ## Error model: Constant variance   ##  @@ -323,15 +323,15 @@  <div class="sourceCode" id="cb17"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb17-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(m.L2.FOMC, <span class="dt">data =</span> <span class="ot">FALSE</span>)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:11 2019  -## Date of summary: Wed Sep 18 17:55:11 2019  +## Date of fit:     Wed Sep 18 18:24:13 2019  +## Date of summary: Wed Sep 18 18:24:13 2019   ##   ## Equations:  ## d_parent/dt = - (alpha/beta) * 1/((time/beta) + 1) * parent  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 239 model solutions performed in 0.511 s +## Fitted using 239 model solutions performed in 0.497 s  ##   ## Error model: Constant variance   ##  @@ -399,8 +399,8 @@  <div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb20-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(m.L2.DFOP, <span class="dt">data =</span> <span class="ot">FALSE</span>)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:12 2019  -## Date of summary: Wed Sep 18 17:55:12 2019  +## Date of fit:     Wed Sep 18 18:24:14 2019  +## Date of summary: Wed Sep 18 18:24:14 2019   ##   ## Equations:  ## d_parent/dt = - ((k1 * g * exp(-k1 * time) + k2 * (1 - g) * @@ -409,7 +409,7 @@  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 572 model solutions performed in 1.217 s +## Fitted using 572 model solutions performed in 1.215 s  ##   ## Error model: Constant variance   ##  @@ -499,8 +499,8 @@  <div class="sourceCode" id="cb24"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb24-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(mm.L3[[<span class="st">"DFOP"</span>, <span class="dv">1</span>]])</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:14 2019  -## Date of summary: Wed Sep 18 17:55:14 2019  +## Date of fit:     Wed Sep 18 18:24:16 2019  +## Date of summary: Wed Sep 18 18:24:16 2019   ##   ## Equations:  ## d_parent/dt = - ((k1 * g * exp(-k1 * time) + k2 * (1 - g) * @@ -509,7 +509,7 @@  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 373 model solutions performed in 0.803 s +## Fitted using 373 model solutions performed in 0.778 s  ##   ## Error model: Constant variance   ##  @@ -605,15 +605,15 @@  <div class="sourceCode" id="cb29"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb29-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(mm.L4[[<span class="st">"SFO"</span>, <span class="dv">1</span>]], <span class="dt">data =</span> <span class="ot">FALSE</span>)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:15 2019  -## Date of summary: Wed Sep 18 17:55:15 2019  +## Date of fit:     Wed Sep 18 18:24:17 2019  +## Date of summary: Wed Sep 18 18:24:17 2019   ##   ## Equations:  ## d_parent/dt = - k_parent_sink * parent  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 142 model solutions performed in 0.301 s +## Fitted using 142 model solutions performed in 0.293 s  ##   ## Error model: Constant variance   ##  @@ -670,15 +670,15 @@  <div class="sourceCode" id="cb31"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb31-1" title="1"><span class="kw"><a href="https://rdrr.io/r/base/summary.html">summary</a></span>(mm.L4[[<span class="st">"FOMC"</span>, <span class="dv">1</span>]], <span class="dt">data =</span> <span class="ot">FALSE</span>)</a></code></pre></div>  <pre><code>## mkin version used for fitting:    0.9.49.6   ## R version used for fitting:       3.6.1  -## Date of fit:     Wed Sep 18 17:55:15 2019  -## Date of summary: Wed Sep 18 17:55:15 2019  +## Date of fit:     Wed Sep 18 18:24:17 2019  +## Date of summary: Wed Sep 18 18:24:17 2019   ##   ## Equations:  ## d_parent/dt = - (alpha/beta) * 1/((time/beta) + 1) * parent  ##   ## Model predictions using solution type analytical   ##  -## Fitted using 224 model solutions performed in 0.458 s +## Fitted using 224 model solutions performed in 0.46 s  ##   ## Error model: Constant variance   ##  diff --git a/docs/articles/twa.html b/docs/articles/twa.html index 799349d9..2d44a89d 100644 --- a/docs/articles/twa.html +++ b/docs/articles/twa.html @@ -130,7 +130,7 @@  <p><span class="math display">\[f_\textrm{twa} = \frac{1}{t} \left(    \frac{1}{k_1} \left( 1 - e^{- k_1 t_b} \right) +    \frac{e^{- k_1 t_b}}{k_2} \left( 1 - e^{- k_2 (t - t_b)} \right)  \right) \]</span></p> -<p>Note that a method for calculating maximum moving window time weighted average concentrations for a model fitted by ‘mkinfit’ or from parent decline model parameters is included in the <a href="https://pkgdown.jrwb.de/mkin/reference/max_twa_parent.html">‘max_twa_parent’</a> function. If the same is needed for metabolites, the function <a href="https://pkgdown.jrwb.de/pfm/reference/max_twa.html">‘max_twa’</a> from the ‘pfm’ package can be used.</p> +<p>Note that a method for calculating maximum moving window time weighted average concentrations for a model fitted by ‘mkinfit’ or from parent decline model parameters is included in the <code><a href="../reference/max_twa_parent.html">max_twa_parent()</a></code> function. If the same is needed for metabolites, the function <code><a href="https://rdrr.io/pkg/pfm/man/max_twa.html">pfm::max_twa()</a></code> from the ‘pfm’ package can be used.</p>  <div id="refs" class="references">  <div id="ref-FOCUSkinetics2014">  <p>FOCUS Work Group on Degradation Kinetics. 2014. <em>Generic Guidance for Estimating Persistence and Degradation Kinetics from Environmental Fate Studies on Pesticides in Eu Registration</em>. 1.1 ed. <a href="http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics" class="uri">http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics</a>.</p> diff --git a/docs/articles/web_only/benchmarks.html b/docs/articles/web_only/benchmarks.html index 144c4c29..d46e738a 100644 --- a/docs/articles/web_only/benchmarks.html +++ b/docs/articles/web_only/benchmarks.html @@ -204,70 +204,70 @@  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 7.064  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 7.296  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 5.936 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 5.940 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 5.970  ##                                                                         t2  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 11.019  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 22.889  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 12.558  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 21.239  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 20.545 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 36.631 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 36.524  ##                                                                        t3  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 3.764  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 4.649  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 4.786  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 4.510  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 4.446 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 4.507 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 4.607  ##                                                                         t4  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 14.347  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 13.789  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2  8.461  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 13.805  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 15.335 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 31.282 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 31.617  ##                                                                         t5  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1  9.495  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1  6.395  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2  5.675  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3  7.386  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4  6.002 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 10.727 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 10.543  ##                                                                        t6  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 2.623  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 2.542  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 2.723  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 2.643  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 2.635 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 2.634 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 2.579  ##                                                                        t7  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 4.587  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 4.128  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 4.478  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 4.374  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 4.259 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 4.295 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 4.341  ##                                                                        t8  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 7.525  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 4.632  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 4.862  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3  7.02  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 4.737 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6  8.13 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 8.101  ##                                                                         t9  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 16.621  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1  8.171  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2  7.618  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 11.124  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4  7.763 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 16.064 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 16.211  ##                                                                       t10  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 8.576  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1 3.676  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.2 3.579  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.3 5.388  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.4 3.427 -## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 8.034 +## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.6 8.041  ##                                                                        t11  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.48.1 31.267  ## Linux, AMD Ryzen 7 1700 Eight-Core Processor, mkin version 0.9.49.1  5.636 diff --git a/docs/articles/web_only/compiled_models.html b/docs/articles/web_only/compiled_models.html index 6594c3e6..1876e2b3 100644 --- a/docs/articles/web_only/compiled_models.html +++ b/docs/articles/web_only/compiled_models.html @@ -165,9 +165,9 @@  ## Warning in mkinfit(SFO_SFO, FOCUS_2006_D, solution_type = "deSolve", quiet  ## = TRUE): Observations with value of zero were removed from the data</code></pre>  <pre><code>##                    test replications elapsed relative user.self sys.self -## 3     deSolve, compiled            3   3.143    1.000     3.141        0 -## 1 deSolve, not compiled            3  28.853    9.180    28.839        0 -## 2      Eigenvalue based            3   4.427    1.409     4.425        0 +## 3     deSolve, compiled            3   3.129    1.000     3.127        0 +## 1 deSolve, not compiled            3  28.841    9.217    28.827        0 +## 2      Eigenvalue based            3   4.433    1.417     4.430        0  ##   user.child sys.child  ## 3          0         0  ## 1          0         0 @@ -216,8 +216,8 @@  ## Warning in mkinfit(FOMC_SFO, FOCUS_2006_D, quiet = TRUE): Observations with  ## value of zero were removed from the data</code></pre>  <pre><code>##                    test replications elapsed relative user.self sys.self -## 2     deSolve, compiled            3   4.956    1.000     4.952        0 -## 1 deSolve, not compiled            3  53.338   10.762    53.312        0 +## 2     deSolve, compiled            3   4.860    1.000     4.857        0 +## 1 deSolve, not compiled            3  53.877   11.086    53.850        0  ##   user.child sys.child  ## 2          0         0  ## 1          0         0</code></pre> diff --git a/docs/reference/mkinfit.html b/docs/reference/mkinfit.html index 954086b5..dc052f2a 100644 --- a/docs/reference/mkinfit.html +++ b/docs/reference/mkinfit.html @@ -408,15 +408,15 @@ Per default, parameters in the kinetic models are internally transformed in  <span class='no'>fit</span> <span class='kw'><-</span> <span class='fu'>mkinfit</span>(<span class='st'>"FOMC"</span>, <span class='no'>FOCUS_2006_C</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)  <span class='fu'><a href='https://rdrr.io/r/base/summary.html'>summary</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#> mkin version used for fitting:    0.9.49.6   #> R version used for fitting:       3.6.1  -#> Date of fit:     Wed Sep 18 17:53:04 2019  -#> Date of summary: Wed Sep 18 17:53:04 2019  +#> Date of fit:     Wed Sep 18 18:22:06 2019  +#> Date of summary: Wed Sep 18 18:22:06 2019   #>   #> Equations:  #> d_parent/dt = - (alpha/beta) * 1/((time/beta) + 1) * parent  #>   #> Model predictions using solution type analytical   #>  -#> Fitted using 222 model solutions performed in 0.467 s +#> Fitted using 222 model solutions performed in 0.459 s  #>   #> Error model: Constant variance   #>  @@ -490,7 +490,7 @@ Per default, parameters in the kinetic models are internally transformed in    <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>))</div><div class='output co'>#> <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'><span class='co'># Fit the model to the FOCUS example dataset D using defaults</span>  <span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span>(<span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>(<span class='no'>fit</span> <span class='kw'><-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO</span>, <span class='no'>FOCUS_2006_D</span>,                             <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"eigen"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)))</div><div class='output co'>#> <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='output co'>#>        User      System verstrichen  -#>       1.524       0.000       1.527 </div><div class='input'><span class='fu'><a href='https://rdrr.io/r/stats/coef.html'>coef</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#> NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#> $ff +#>       1.494       0.000       1.496 </div><div class='input'><span class='fu'><a href='https://rdrr.io/r/stats/coef.html'>coef</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#> NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#> $ff  #> parent_sink   parent_m1     m1_sink   #>    0.485524    0.514476    1.000000   #>  @@ -563,7 +563,7 @@ Per default, parameters in the kinetic models are internally transformed in  #> Sum of squared residuals at call 126: 371.2134  #> Sum of squared residuals at call 135: 371.2134  #> Negative log-likelihood at call 145: 97.22429</div><div class='output co'>#> <span class='message'>Optimisation successfully terminated.</span></div><div class='output co'>#>        User      System verstrichen  -#>       1.115       0.000       1.116 </div><div class='input'><span class='fu'><a href='https://rdrr.io/r/stats/coef.html'>coef</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#> NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#> $ff +#>       1.056       0.000       1.057 </div><div class='input'><span class='fu'><a href='https://rdrr.io/r/stats/coef.html'>coef</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#> NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#> $ff  #> parent_sink   parent_m1     m1_sink   #>    0.485524    0.514476    1.000000   #>  @@ -599,8 +599,8 @@ Per default, parameters in the kinetic models are internally transformed in  <span class='no'>SFO_SFO.ff</span> <span class='kw'><-</span> <span class='fu'><a href='mkinmod.html'>mkinmod</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>, <span class='st'>"m1"</span>),                        <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>), <span class='kw'>use_of_ff</span> <span class='kw'>=</span> <span class='st'>"max"</span>)</div><div class='output co'>#> <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'><span class='no'>f.noweight</span> <span class='kw'><-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#> <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://rdrr.io/r/base/summary.html'>summary</a></span>(<span class='no'>f.noweight</span>)</div><div class='output co'>#> mkin version used for fitting:    0.9.49.6   #> R version used for fitting:       3.6.1  -#> Date of fit:     Wed Sep 18 17:53:19 2019  -#> Date of summary: Wed Sep 18 17:53:19 2019  +#> Date of fit:     Wed Sep 18 18:22:22 2019  +#> Date of summary: Wed Sep 18 18:22:22 2019   #>   #> Equations:  #> d_parent/dt = - k_parent * parent @@ -608,7 +608,7 @@ Per default, parameters in the kinetic models are internally transformed in  #>   #> Model predictions using solution type deSolve   #>  -#> Fitted using 421 model solutions performed in 1.167 s +#> Fitted using 421 model solutions performed in 1.15 s  #>   #> Error model: Constant variance   #>  @@ -718,8 +718,8 @@ Per default, parameters in the kinetic models are internally transformed in  #>   120       m1    25.15  28.78984 -3.640e+00  #>   120       m1    33.31  28.78984  4.520e+00</div><div class='input'><span class='no'>f.obs</span> <span class='kw'><-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>error_model</span> <span class='kw'>=</span> <span class='st'>"obs"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#> <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://rdrr.io/r/base/summary.html'>summary</a></span>(<span class='no'>f.obs</span>)</div><div class='output co'>#> mkin version used for fitting:    0.9.49.6   #> R version used for fitting:       3.6.1  -#> Date of fit:     Wed Sep 18 17:53:22 2019  -#> Date of summary: Wed Sep 18 17:53:22 2019  +#> Date of fit:     Wed Sep 18 18:22:24 2019  +#> Date of summary: Wed Sep 18 18:22:24 2019   #>   #> Equations:  #> d_parent/dt = - k_parent * parent @@ -727,7 +727,7 @@ Per default, parameters in the kinetic models are internally transformed in  #>   #> Model predictions using solution type deSolve   #>  -#> Fitted using 979 model solutions performed in 2.583 s +#> Fitted using 979 model solutions performed in 2.553 s  #>   #> Error model: Variance unique to each observed variable   #>  @@ -850,8 +850,8 @@ Per default, parameters in the kinetic models are internally transformed in  #>   120       m1    25.15  28.80429 -3.654e+00  #>   120       m1    33.31  28.80429  4.506e+00</div><div class='input'><span class='no'>f.tc</span> <span class='kw'><-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>error_model</span> <span class='kw'>=</span> <span class='st'>"tc"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#> <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://rdrr.io/r/base/summary.html'>summary</a></span>(<span class='no'>f.tc</span>)</div><div class='output co'>#> mkin version used for fitting:    0.9.49.6   #> R version used for fitting:       3.6.1  -#> Date of fit:     Wed Sep 18 17:53:31 2019  -#> Date of summary: Wed Sep 18 17:53:31 2019  +#> Date of fit:     Wed Sep 18 18:22:34 2019  +#> Date of summary: Wed Sep 18 18:22:34 2019   #>   #> Equations:  #> d_parent/dt = - k_parent * parent @@ -859,7 +859,7 @@ Per default, parameters in the kinetic models are internally transformed in  #>   #> Model predictions using solution type deSolve   #>  -#> Fitted using 2289 model solutions performed in 9.35 s +#> Fitted using 2289 model solutions performed in 9.369 s  #>   #> Error model: Two-component variance function   #>  diff --git a/docs/reference/mkinmod.html b/docs/reference/mkinmod.html index 4c73a0db..a5cdd04d 100644 --- a/docs/reference/mkinmod.html +++ b/docs/reference/mkinmod.html @@ -239,7 +239,7 @@ For the definition of model types and their parameters, the equations given  <span class='no'>SFO_SFO</span> <span class='kw'><-</span> <span class='fu'>mkinmod</span>(    <span class='kw'>parent</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>, <span class='st'>"m1"</span>),    <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>), <span class='kw'>verbose</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#> Compilation argument: -#>  /usr/lib/R/bin/R CMD SHLIB file195c26c6bf0a.c 2> file195c26c6bf0a.c.err.txt  +#>  /usr/lib/R/bin/R CMD SHLIB file310b6c1fede0.c 2> file310b6c1fede0.c.err.txt   #> Program source:  #>   1: #include <R.h>  #>   2:  diff --git a/docs/reference/mkinpredict.html b/docs/reference/mkinpredict.html index f2c6f87f..97d3ca3a 100644 --- a/docs/reference/mkinpredict.html +++ b/docs/reference/mkinpredict.html @@ -332,17 +332,17 @@                  <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://rdrr.io/r/base/seq.html'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),                  <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"eigen"</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#>     time   parent       m1  #> 201   20 4.978707 27.46227</div><div class='output co'>#>        User      System verstrichen  -#>       0.003       0.000       0.003 </div><div class='input'>  <span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>( +#>       0.003       0.000       0.004 </div><div class='input'>  <span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>(      <span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span>(<span class='fu'>mkinpredict</span>(<span class='no'>SFO_SFO</span>, <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>k_parent_m1</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>k_parent_sink</span> <span class='kw'>=</span> <span class='fl'>0.1</span>, <span class='kw'>k_m1_sink</span> <span class='kw'>=</span> <span class='fl'>0.01</span>),                  <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://rdrr.io/r/base/seq.html'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),                  <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#>     time   parent       m1  #> 201   20 4.978707 27.46227</div><div class='output co'>#>        User      System verstrichen  -#>       0.001       0.000       0.001 </div><div class='input'>  <span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>( +#>       0.001       0.000       0.002 </div><div class='input'>  <span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>(      <span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span>(<span class='fu'>mkinpredict</span>(<span class='no'>SFO_SFO</span>, <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>k_parent_m1</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>k_parent_sink</span> <span class='kw'>=</span> <span class='fl'>0.1</span>, <span class='kw'>k_m1_sink</span> <span class='kw'>=</span> <span class='fl'>0.01</span>),                  <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://rdrr.io/r/base/seq.html'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),                  <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>, <span class='kw'>use_compiled</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#>     time   parent       m1  #> 201   20 4.978707 27.46227</div><div class='output co'>#>        User      System verstrichen  -#>       0.022       0.000       0.022 </div><div class='input'> +#>       0.021       0.000       0.022 </div><div class='input'>    <span class='co'># \dontrun{</span>      <span class='co'># Predict from a fitted model</span>      <span class='no'>f</span> <span class='kw'><-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO</span>, <span class='no'>FOCUS_2006_C</span>)</div><div class='output co'>#> <span class='message'>Ordinary least squares optimisation</span></div><div class='output co'>#> Sum of squared residuals at call 1: 552.5739 diff --git a/docs/reference/mmkin.html b/docs/reference/mmkin.html index eac99579..81ebde7c 100644 --- a/docs/reference/mmkin.html +++ b/docs/reference/mmkin.html @@ -199,8 +199,8 @@  <span class='no'>time_1</span> <span class='kw'><-</span> <span class='fu'><a href='https://rdrr.io/r/base/system.time.html'>system.time</a></span>(<span class='no'>fits.4</span> <span class='kw'><-</span> <span class='fu'>mmkin</span>(<span class='no'>models</span>, <span class='no'>datasets</span>, <span class='kw'>cores</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>))  <span class='no'>time_default</span></div><div class='output co'>#>        User      System verstrichen  -#>       0.013       0.027       5.014 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#>        User      System verstrichen  -#>      19.047       0.000      19.057 </div><div class='input'> +#>       0.013       0.039       5.128 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#>        User      System verstrichen  +#>      18.942       0.000      18.951 </div><div class='input'>  <span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fits.0</span><span class='kw'>[[</span><span class='st'>"SFO_lin"</span>, <span class='fl'>2</span>]])</div><div class='output co'>#> $ff  #>   parent_M1 parent_sink       M1_M2     M1_sink   #>   0.7340481   0.2659519   0.7505684   0.2494316  diff --git a/docs/reference/summary.mkinfit.html b/docs/reference/summary.mkinfit.html index cc2ac55a..c5d58911 100644 --- a/docs/reference/summary.mkinfit.html +++ b/docs/reference/summary.mkinfit.html @@ -215,15 +215,15 @@      <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/base/summary.html'>summary</a></span>(<span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='fu'><a href='mkinmod.html'>mkinmod</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>)), <span class='no'>FOCUS_2006_A</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>))</div><div class='output co'>#> mkin version used for fitting:    0.9.49.6   #> R version used for fitting:       3.6.1  -#> Date of fit:     Wed Sep 18 17:54:50 2019  -#> Date of summary: Wed Sep 18 17:54:50 2019  +#> Date of fit:     Wed Sep 18 18:23:52 2019  +#> Date of summary: Wed Sep 18 18:23:52 2019   #>   #> Equations:  #> d_parent/dt = - k_parent_sink * parent  #>   #> Model predictions using solution type analytical   #>  -#> Fitted using 131 model solutions performed in 0.27 s +#> Fitted using 131 model solutions performed in 0.268 s  #>   #> Error model: Constant variance   #>  diff --git a/vignettes/mkin_benchmarks.rda b/vignettes/mkin_benchmarks.rdaBinary files differ index 764c874c..aa794a02 100644 --- a/vignettes/mkin_benchmarks.rda +++ b/vignettes/mkin_benchmarks.rda diff --git a/vignettes/twa.Rmd b/vignettes/twa.Rmd index 6ebb7b89..6f283eb2 100644 --- a/vignettes/twa.Rmd +++ b/vignettes/twa.Rmd @@ -74,8 +74,6 @@ $$f_\textrm{twa} = \frac{1}{t} \left(  Note that a method for calculating maximum moving window time weighted average  concentrations for a model fitted by 'mkinfit' or from parent decline model -parameters is included in the -['max_twa_parent'](https://pkgdown.jrwb.de/mkin/reference/max_twa_parent.html) -function. -If the same is needed for metabolites, the function  -['max_twa'](https://pkgdown.jrwb.de/pfm/reference/max_twa.html) from the 'pfm' package can be used. +parameters is included in the `max_twa_parent()` function. If the same is +needed for metabolites, the function `pfm::max_twa()` from the 'pfm' package +can be used. diff --git a/vignettes/twa.html b/vignettes/twa.html index 0db7eeff..41989b5d 100644 --- a/vignettes/twa.html +++ b/vignettes/twa.html @@ -252,7 +252,7 @@ code > span.fu { color: #900; font-weight: bold; }  code > span.er { color: #a61  <p><span class="math display">\[f_\textrm{twa} = \frac{1}{t} \left(    \frac{1}{k_1} \left( 1 - e^{- k_1 t_b} \right) +    \frac{e^{- k_1 t_b}}{k_2} \left( 1 - e^{- k_2 (t - t_b)} \right)  \right) \]</span></p> -<p>Note that a method for calculating maximum moving window time weighted average concentrations for a model fitted by ‘mkinfit’ or from parent decline model parameters is included in the <a href="https://pkgdown.jrwb.de/mkin/reference/max_twa_parent.html">‘max_twa_parent’</a> function. If the same is needed for metabolites, the function <a href="https://pkgdown.jrwb.de/pfm/reference/max_twa.html">‘max_twa’</a> from the ‘pfm’ package can be used.</p> +<p>Note that a method for calculating maximum moving window time weighted average concentrations for a model fitted by ‘mkinfit’ or from parent decline model parameters is included in the <code>max_twa_parent()</code> function. If the same is needed for metabolites, the function <code>pfm::max_twa()</code> from the ‘pfm’ package can be used.</p>  <div id="refs" class="references">  <div id="ref-FOCUSkinetics2014">  <p>FOCUS Work Group on Degradation Kinetics. 2014. <em>Generic Guidance for Estimating Persistence and Degradation Kinetics from Environmental Fate Studies on Pesticides in Eu Registration</em>. 1.1 ed. <a href="http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics" class="uri">http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics</a>.</p> | 
