aboutsummaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2017-05-05 12:46:31 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2017-05-05 12:46:31 +0200
commitccc70e82af4ba435f0a71ba1ae4e0e92045c3852 (patch)
treed8ffd99be771f47eae876f244b049742481bdd25 /docs/reference
parent1c7dbeec335c404377381157d34db6e219ce3f21 (diff)
Static docs except articles rebuilt with current pkgdown
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/DFOP.solution.html55
-rw-r--r--docs/reference/Extract.mmkin.html110
-rw-r--r--docs/reference/FOCUS_2006_DFOP_ref_A_to_B.html38
-rw-r--r--docs/reference/FOCUS_2006_FOMC_ref_A_to_F.html36
-rw-r--r--docs/reference/FOCUS_2006_HS_ref_A_to_F.html38
-rw-r--r--docs/reference/FOCUS_2006_SFO_ref_A_to_F.html34
-rw-r--r--docs/reference/FOCUS_2006_datasets.html28
-rw-r--r--docs/reference/FOMC.solution.html54
-rw-r--r--docs/reference/HS.solution.html52
-rw-r--r--docs/reference/IORE.solution.html42
-rw-r--r--docs/reference/SFO.solution.html38
-rw-r--r--docs/reference/SFORB.solution.html50
-rw-r--r--docs/reference/add_err.html82
-rw-r--r--docs/reference/endpoints.html28
-rw-r--r--docs/reference/geometric_mean.html30
-rw-r--r--docs/reference/ilr.html30
-rw-r--r--docs/reference/index.html537
-rw-r--r--docs/reference/mccall81_245T.html67
-rw-r--r--docs/reference/mkin_long_to_wide.html48
-rw-r--r--docs/reference/mkin_wide_to_long.html38
-rw-r--r--docs/reference/mkinds.html31
-rw-r--r--docs/reference/mkinerrmin.html49
-rw-r--r--docs/reference/mkinfit.html524
-rw-r--r--docs/reference/mkinmod.html100
-rw-r--r--docs/reference/mkinparplot-4.pngbin5373 -> 5360 bytes
-rw-r--r--docs/reference/mkinparplot.html28
-rw-r--r--docs/reference/mkinplot.html36
-rw-r--r--docs/reference/mkinpredict.html140
-rw-r--r--docs/reference/mkinresplot.html97
-rw-r--r--docs/reference/mkinsub.html60
-rw-r--r--docs/reference/mmkin-15.pngbin0 -> 30012 bytes
-rw-r--r--docs/reference/mmkin-17.pngbin0 -> 27062 bytes
-rw-r--r--docs/reference/mmkin-19.pngbin0 -> 25359 bytes
-rw-r--r--docs/reference/mmkin-21.pngbin0 -> 18905 bytes
-rw-r--r--docs/reference/mmkin-23.pngbin0 -> 17039 bytes
-rw-r--r--docs/reference/mmkin.html91
-rw-r--r--docs/reference/plot.mkinfit.html203
-rw-r--r--docs/reference/plot.mmkin.html86
-rw-r--r--docs/reference/print.mkinds.html30
-rw-r--r--docs/reference/print.mkinmod.html33
-rw-r--r--docs/reference/schaefer07_complex_case.html40
-rw-r--r--docs/reference/summary.mkinfit.html104
-rw-r--r--docs/reference/synthetic_data_for_UBA.html83
-rw-r--r--docs/reference/transform_odeparms.html110
-rw-r--r--docs/reference/twa.html38
45 files changed, 1820 insertions, 1498 deletions
diff --git a/docs/reference/DFOP.solution.html b/docs/reference/DFOP.solution.html
index bad6dd57..3dbacdc1 100644
--- a/docs/reference/DFOP.solution.html
+++ b/docs/reference/DFOP.solution.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — DFOP.solution • mkin</title>
+<title>Double First-Order in Parallel kinetics — DFOP.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Double First-Order in Parallel kinetics</h1>
</div>
@@ -105,23 +108,33 @@
of two exponential decline functions.</p>
- <pre><span class='fu'>DFOP.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k1</span>, <span class='no'>k2</span>, <span class='no'>g</span>)</pre>
+ <pre class="usage"><span class='fu'>DFOP.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k1</span>, <span class='no'>k2</span>, <span class='no'>g</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>k1</dt>
- <dd> First kinetic constant. </dd>
- <dt>k2</dt>
- <dd> Second kinetic constant. </dd>
- <dt>g</dt>
- <dd> Fraction of the starting value declining according to the
- first kinetic constant.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>k1</th>
+ <td><p>First kinetic constant.</p></td>
+ </tr>
+ <tr>
+ <th>k2</th>
+ <td><p>Second kinetic constant.</p></td>
+ </tr>
+ <tr>
+ <th>g</th>
+ <td><p>Fraction of the starting value declining according to the
+ first kinetic constant.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -133,7 +146,7 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/Extract.mmkin.html b/docs/reference/Extract.mmkin.html
index 0131342a..135297cd 100644
--- a/docs/reference/Extract.mmkin.html
+++ b/docs/reference/Extract.mmkin.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -102,23 +107,34 @@
<p>Subsetting method for mmkin objects.</p>
- <pre># S3 method for mmkin
+ <pre class="usage"># S3 method for mmkin
[(x, i, j, ..., drop = FALSE)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>An <code><a href='mmkin.html'>mmkin</a> object</code></dd>
- <dt>i</dt>
- <dd>Row index selecting the fits for specific models</dd>
- <dt>j</dt>
- <dd>Column index selecting the fits to specific datasets</dd>
- <dt>...</dt>
- <dd>Not used, only there to satisfy the generic method definition</dd>
- <dt>drop</dt>
- <dd>If FALSE, the method always returns an mmkin object, otherwise either
- a list of mkinfit objects or a single mkinfit object.</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>An <code><a href='mmkin.html'>mmkin</a> object</code></p></td>
+ </tr>
+ <tr>
+ <th>i</th>
+ <td><p>Row index selecting the fits for specific models</p></td>
+ </tr>
+ <tr>
+ <th>j</th>
+ <td><p>Column index selecting the fits to specific datasets</p></td>
+ </tr>
+ <tr>
+ <th>...</th>
+ <td><p>Not used, only there to satisfy the generic method definition</p></td>
+ </tr>
+ <tr>
+ <th>drop</th>
+ <td><p>If FALSE, the method always returns an mmkin object, otherwise either
+ a list of mkinfit objects or a single mkinfit object.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -132,23 +148,23 @@
<span class='no'>fits</span>[<span class='st'>"FOMC"</span>, ]</div><div class='output co'>#&gt; dataset
#&gt; model B C
#&gt; FOMC List,42 List,42
-#&gt; attr(,&quot;class&quot;)
-#&gt; [1] &quot;mmkin&quot;</div><div class='input'> <span class='no'>fits</span>[, <span class='st'>"B"</span>]</div><div class='output co'>#&gt; dataset
+#&gt; attr(,"class")
+#&gt; [1] "mmkin"</div><div class='input'> <span class='no'>fits</span>[, <span class='st'>"B"</span>]</div><div class='output co'>#&gt; dataset
#&gt; model B
#&gt; SFO List,42
#&gt; FOMC List,42
-#&gt; attr(,&quot;class&quot;)
-#&gt; [1] &quot;mmkin&quot;</div><div class='input'> <span class='no'>fits</span>[<span class='st'>"SFO"</span>, <span class='st'>"B"</span>]</div><div class='output co'>#&gt; dataset
+#&gt; attr(,"class")
+#&gt; [1] "mmkin"</div><div class='input'> <span class='no'>fits</span>[<span class='st'>"SFO"</span>, <span class='st'>"B"</span>]</div><div class='output co'>#&gt; dataset
#&gt; model B
#&gt; SFO List,42
-#&gt; attr(,&quot;class&quot;)
-#&gt; [1] &quot;mmkin&quot;</div><div class='input'>
+#&gt; attr(,"class")
+#&gt; [1] "mmkin"</div><div class='input'>
<span class='fu'>head</span>(
<span class='co'># This extracts an mkinfit object with lots of components</span>
<span class='no'>fits</span><span class='kw'>[[</span><span class='st'>"FOMC"</span>, <span class='st'>"B"</span>]]
)</div><div class='output co'>#&gt; $par
#&gt; parent_0 log_alpha log_beta
-#&gt; 99.666193 2.549849 5.050586
+#&gt; 99.666192 2.549849 5.050586
#&gt;
#&gt; $ssr
#&gt; [1] 28.58291
@@ -164,7 +180,7 @@
#&gt; 25 78
#&gt;
#&gt; $counts
-#&gt; [1] &quot;both X-convergence and relative convergence (5)&quot;
+#&gt; [1] "both X-convergence and relative convergence (5)"
#&gt; </div><div class='input'>
<span class='fu'>head</span>(
<span class='co'># The same can be achieved by</span>
@@ -188,7 +204,7 @@
#&gt; 8 15
#&gt;
#&gt; $counts
-#&gt; [1] &quot;relative convergence (4)&quot;
+#&gt; [1] "relative convergence (4)"
#&gt;
#&gt; $hessian
#&gt; parent_0 log_k_parent_sink
@@ -223,7 +239,7 @@
#&gt; [1] 6
#&gt;
#&gt; $solution_type
-#&gt; [1] &quot;analytical&quot;
+#&gt; [1] "analytical"
#&gt;
#&gt; $transform_rates
#&gt; [1] TRUE
@@ -232,17 +248,17 @@
#&gt; [1] TRUE
#&gt;
#&gt; $method.modFit
-#&gt; [1] &quot;Port&quot;
+#&gt; [1] "Port"
#&gt;
#&gt; $maxit.modFit
-#&gt; [1] &quot;auto&quot;
+#&gt; [1] "auto"
#&gt;
#&gt; $calls
#&gt; [1] 29
#&gt;
#&gt; $time
#&gt; user system elapsed
-#&gt; 0.068 0.000 0.066
+#&gt; 0.064 0.000 0.063
#&gt;
#&gt; $mkinmod
#&gt; &lt;mkinmod&gt; model generated with
@@ -266,7 +282,7 @@
#&gt; 8 parent 118 0.08
#&gt;
#&gt; $obs_vars
-#&gt; [1] &quot;parent&quot;
+#&gt; [1] "parent"
#&gt;
#&gt; $predicted
#&gt; name time value
@@ -380,9 +396,9 @@
#&gt; $cost
#&gt; function (P)
#&gt; {
-#&gt; assign(&quot;calls&quot;, calls + 1, inherits = TRUE)
+#&gt; assign("calls", calls + 1, inherits = TRUE)
#&gt; if (trace_parms)
-#&gt; cat(P, &quot;\n&quot;)
+#&gt; cat(P, "\n")
#&gt; if (length(state.ini.optim) &gt; 0) {
#&gt; odeini &lt;- c(P[1:length(state.ini.optim)], state.ini.fixed)
#&gt; names(odeini) &lt;- c(state.ini.optim.boxnames, state.ini.fixed.boxnames)
@@ -398,13 +414,13 @@
#&gt; out &lt;- mkinpredict(mkinmod, parms, odeini, outtimes, solution_type = solution_type,
#&gt; use_compiled = use_compiled, method.ode = method.ode,
#&gt; atol = atol, rtol = rtol, ...)
-#&gt; assign(&quot;out_predicted&quot;, out, inherits = TRUE)
-#&gt; mC &lt;- modCost(out, observed, y = &quot;value&quot;, err = err, weight = weight,
+#&gt; assign("out_predicted", out, inherits = TRUE)
+#&gt; mC &lt;- modCost(out, observed, y = "value", err = err, weight = weight,
#&gt; scaleVar = scaleVar)
#&gt; if (mC$model &lt; cost.old) {
#&gt; if (!quiet)
-#&gt; cat(&quot;Model cost at call &quot;, calls, &quot;: &quot;, mC$model,
-#&gt; &quot;\n&quot;)
+#&gt; cat("Model cost at call ", calls, ": ", mC$model,
+#&gt; "\n")
#&gt; if (plot) {
#&gt; outtimes_plot = seq(min(observed$time), max(observed$time),
#&gt; length.out = 100)
@@ -412,9 +428,9 @@
#&gt; solution_type = solution_type, use_compiled = use_compiled,
#&gt; method.ode = method.ode, atol = atol, rtol = rtol,
#&gt; ...)
-#&gt; plot(0, type = &quot;n&quot;, xlim = range(observed$time),
+#&gt; plot(0, type = "n", xlim = range(observed$time),
#&gt; ylim = c(0, max(observed$value, na.rm = TRUE)),
-#&gt; xlab = &quot;Time&quot;, ylab = &quot;Observed&quot;)
+#&gt; xlab = "Time", ylab = "Observed")
#&gt; col_obs &lt;- pch_obs &lt;- 1:length(obs_vars)
#&gt; lty_obs &lt;- rep(1, length(obs_vars))
#&gt; names(col_obs) &lt;- names(pch_obs) &lt;- names(lty_obs) &lt;- obs_vars
@@ -424,14 +440,15 @@
#&gt; }
#&gt; matlines(out_plot$time, out_plot[-1], col = col_obs,
#&gt; lty = lty_obs)
-#&gt; legend(&quot;topright&quot;, inset = c(0.05, 0.05), legend = obs_vars,
+#&gt; legend("topright", inset = c(0.05, 0.05), legend = obs_vars,
#&gt; col = col_obs, pch = pch_obs, lty = 1:length(pch_obs))
#&gt; }
-#&gt; assign(&quot;cost.old&quot;, mC$model, inherits = TRUE)
+#&gt; assign("cost.old", mC$model, inherits = TRUE)
#&gt; }
#&gt; return(mC)
#&gt; }
-#&gt; &lt;environment: 0x3b9eeb8&gt;
+#&gt; &lt;bytecode: 0x5554250&gt;
+#&gt; &lt;environment: 0x4eb4b18&gt;
#&gt;
#&gt; $cost_notrans
#&gt; function (P)
@@ -449,11 +466,12 @@
#&gt; out &lt;- mkinpredict(mkinmod, odeparms, odeini, outtimes, solution_type = solution_type,
#&gt; use_compiled = use_compiled, method.ode = method.ode,
#&gt; atol = atol, rtol = rtol, ...)
-#&gt; mC &lt;- modCost(out, observed, y = &quot;value&quot;, err = err, weight = weight,
+#&gt; mC &lt;- modCost(out, observed, y = "value", err = err, weight = weight,
#&gt; scaleVar = scaleVar)
#&gt; return(mC)
#&gt; }
-#&gt; &lt;environment: 0x3b9eeb8&gt;
+#&gt; &lt;bytecode: 0x5073868&gt;
+#&gt; &lt;environment: 0x4eb4b18&gt;
#&gt;
#&gt; $hessian_notrans
#&gt; parent_0 k_parent_sink
@@ -492,7 +510,7 @@
#&gt; [1] 1e-10
#&gt;
#&gt; $weight.ini
-#&gt; [1] &quot;none&quot;
+#&gt; [1] "none"
#&gt;
#&gt; $reweight.tol
#&gt; [1] 1e-08
@@ -516,10 +534,10 @@
#&gt; 99.17407
#&gt;
#&gt; $date
-#&gt; [1] &quot;Wed Mar 15 09:44:44 2017&quot;
+#&gt; [1] "Fri May 5 12:44:53 2017"
#&gt;
-#&gt; attr(,&quot;class&quot;)
-#&gt; [1] &quot;mkinfit&quot; &quot;modFit&quot;
+#&gt; attr(,"class")
+#&gt; [1] "mkinfit" "modFit"
#&gt; </div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
diff --git a/docs/reference/FOCUS_2006_DFOP_ref_A_to_B.html b/docs/reference/FOCUS_2006_DFOP_ref_A_to_B.html
index fff99b6c..703dc472 100644
--- a/docs/reference/FOCUS_2006_DFOP_ref_A_to_B.html
+++ b/docs/reference/FOCUS_2006_DFOP_ref_A_to_B.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — FOCUS_2006_DFOP_ref_A_to_B • mkin</title>
+<title>Results of fitting the DFOP model to Datasets A to B of FOCUS (2006) — FOCUS_2006_DFOP_ref_A_to_B • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Results of fitting the DFOP model to Datasets A to B of FOCUS (2006)</h1>
</div>
@@ -108,21 +111,20 @@ the initial concentration of the parent compound was fixed to a value of 100
in this fit.</p>
- <pre><span class='fu'>data</span>(<span class='no'>FOCUS_2006_DFOP_ref_A_to_B</span>)</pre>
+ <pre class="usage"><span class='fu'>data</span>(<span class='no'>FOCUS_2006_DFOP_ref_A_to_B</span>)</pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A data frame containing the following variables.
- <dl class='dl-horizontal'>
- <dt><code>package</code></dt><dd>a factor giving the name of the software package</dd>
- <dt><code>M0</code></dt><dd>The fitted initial concentration of the parent compound</dd>
- <dt><code>f</code></dt><dd>The fitted f parameter</dd>
- <dt><code>k1</code></dt><dd>The fitted k1 parameter</dd>
- <dt><code>k2</code></dt><dd>The fitted k2 parameter</dd>
- <dt><code>DT50</code></dt><dd>The resulting half-life of the parent compound</dd>
- <dt><code>DT90</code></dt><dd>The resulting DT90 of the parent compound</dd>
- <dt><code>dataset</code></dt><dd>The FOCUS dataset that was used</dd>
- </dl></p>
+ <p>A data frame containing the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>package</code></dt><dd><p>a factor giving the name of the software package</p></dd>
+ <dt><code>M0</code></dt><dd><p>The fitted initial concentration of the parent compound</p></dd>
+ <dt><code>f</code></dt><dd><p>The fitted f parameter</p></dd>
+ <dt><code>k1</code></dt><dd><p>The fitted k1 parameter</p></dd>
+ <dt><code>k2</code></dt><dd><p>The fitted k2 parameter</p></dd>
+ <dt><code>DT50</code></dt><dd><p>The resulting half-life of the parent compound</p></dd>
+ <dt><code>DT90</code></dt><dd><p>The resulting DT90 of the parent compound</p></dd>
+ <dt><code>dataset</code></dt><dd><p>The FOCUS dataset that was used</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -130,7 +132,7 @@ in this fit.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/FOCUS_2006_FOMC_ref_A_to_F.html b/docs/reference/FOCUS_2006_FOMC_ref_A_to_F.html
index 5c9feb23..eec595f0 100644
--- a/docs/reference/FOCUS_2006_FOMC_ref_A_to_F.html
+++ b/docs/reference/FOCUS_2006_FOMC_ref_A_to_F.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — FOCUS_2006_FOMC_ref_A_to_F • mkin</title>
+<title>Results of fitting the FOMC model to Datasets A to F of FOCUS (2006) — FOCUS_2006_FOMC_ref_A_to_F • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Results of fitting the FOMC model to Datasets A to F of FOCUS (2006)</h1>
</div>
@@ -108,20 +111,19 @@ the initial concentration of the parent compound was fixed to a value of 100
in this fit.</p>
- <pre><span class='fu'>data</span>(<span class='no'>FOCUS_2006_FOMC_ref_A_to_F</span>)</pre>
+ <pre class="usage"><span class='fu'>data</span>(<span class='no'>FOCUS_2006_FOMC_ref_A_to_F</span>)</pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A data frame containing the following variables.
- <dl class='dl-horizontal'>
- <dt><code>package</code></dt><dd>a factor giving the name of the software package</dd>
- <dt><code>M0</code></dt><dd>The fitted initial concentration of the parent compound</dd>
- <dt><code>alpha</code></dt><dd>The fitted alpha parameter</dd>
- <dt><code>beta</code></dt><dd>The fitted beta parameter</dd>
- <dt><code>DT50</code></dt><dd>The resulting half-life of the parent compound</dd>
- <dt><code>DT90</code></dt><dd>The resulting DT90 of the parent compound</dd>
- <dt><code>dataset</code></dt><dd>The FOCUS dataset that was used</dd>
- </dl></p>
+ <p>A data frame containing the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>package</code></dt><dd><p>a factor giving the name of the software package</p></dd>
+ <dt><code>M0</code></dt><dd><p>The fitted initial concentration of the parent compound</p></dd>
+ <dt><code>alpha</code></dt><dd><p>The fitted alpha parameter</p></dd>
+ <dt><code>beta</code></dt><dd><p>The fitted beta parameter</p></dd>
+ <dt><code>DT50</code></dt><dd><p>The resulting half-life of the parent compound</p></dd>
+ <dt><code>DT90</code></dt><dd><p>The resulting DT90 of the parent compound</p></dd>
+ <dt><code>dataset</code></dt><dd><p>The FOCUS dataset that was used</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -129,7 +131,7 @@ in this fit.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/FOCUS_2006_HS_ref_A_to_F.html b/docs/reference/FOCUS_2006_HS_ref_A_to_F.html
index 8ccbd86a..c2a90311 100644
--- a/docs/reference/FOCUS_2006_HS_ref_A_to_F.html
+++ b/docs/reference/FOCUS_2006_HS_ref_A_to_F.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — FOCUS_2006_HS_ref_A_to_F • mkin</title>
+<title>Results of fitting the HS model to Datasets A to F of FOCUS (2006) — FOCUS_2006_HS_ref_A_to_F • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Results of fitting the HS model to Datasets A to F of FOCUS (2006)</h1>
</div>
@@ -108,21 +111,20 @@ the initial concentration of the parent compound was fixed to a value of 100
in this fit.</p>
- <pre><span class='fu'>data</span>(<span class='no'>FOCUS_2006_HS_ref_A_to_F</span>)</pre>
+ <pre class="usage"><span class='fu'>data</span>(<span class='no'>FOCUS_2006_HS_ref_A_to_F</span>)</pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A data frame containing the following variables.
- <dl class='dl-horizontal'>
- <dt><code>package</code></dt><dd>a factor giving the name of the software package</dd>
- <dt><code>M0</code></dt><dd>The fitted initial concentration of the parent compound</dd>
- <dt><code>tb</code></dt><dd>The fitted tb parameter</dd>
- <dt><code>k1</code></dt><dd>The fitted k1 parameter</dd>
- <dt><code>k2</code></dt><dd>The fitted k2 parameter</dd>
- <dt><code>DT50</code></dt><dd>The resulting half-life of the parent compound</dd>
- <dt><code>DT90</code></dt><dd>The resulting DT90 of the parent compound</dd>
- <dt><code>dataset</code></dt><dd>The FOCUS dataset that was used</dd>
- </dl></p>
+ <p>A data frame containing the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>package</code></dt><dd><p>a factor giving the name of the software package</p></dd>
+ <dt><code>M0</code></dt><dd><p>The fitted initial concentration of the parent compound</p></dd>
+ <dt><code>tb</code></dt><dd><p>The fitted tb parameter</p></dd>
+ <dt><code>k1</code></dt><dd><p>The fitted k1 parameter</p></dd>
+ <dt><code>k2</code></dt><dd><p>The fitted k2 parameter</p></dd>
+ <dt><code>DT50</code></dt><dd><p>The resulting half-life of the parent compound</p></dd>
+ <dt><code>DT90</code></dt><dd><p>The resulting DT90 of the parent compound</p></dd>
+ <dt><code>dataset</code></dt><dd><p>The FOCUS dataset that was used</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -130,7 +132,7 @@ in this fit.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/FOCUS_2006_SFO_ref_A_to_F.html b/docs/reference/FOCUS_2006_SFO_ref_A_to_F.html
index 263b9b31..24070b9c 100644
--- a/docs/reference/FOCUS_2006_SFO_ref_A_to_F.html
+++ b/docs/reference/FOCUS_2006_SFO_ref_A_to_F.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — FOCUS_2006_SFO_ref_A_to_F • mkin</title>
+<title>Results of fitting the SFO model to Datasets A to F of FOCUS (2006) — FOCUS_2006_SFO_ref_A_to_F • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Results of fitting the SFO model to Datasets A to F of FOCUS (2006)</h1>
</div>
@@ -108,19 +111,18 @@ the initial concentration of the parent compound was fixed to a value of 100
in this fit.</p>
- <pre><span class='fu'>data</span>(<span class='no'>FOCUS_2006_SFO_ref_A_to_F</span>)</pre>
+ <pre class="usage"><span class='fu'>data</span>(<span class='no'>FOCUS_2006_SFO_ref_A_to_F</span>)</pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A data frame containing the following variables.
- <dl class='dl-horizontal'>
- <dt><code>package</code></dt><dd>a factor giving the name of the software package</dd>
- <dt><code>M0</code></dt><dd>The fitted initial concentration of the parent compound</dd>
- <dt><code>k</code></dt><dd>The fitted first-order degradation rate constant</dd>
- <dt><code>DT50</code></dt><dd>The resulting half-life of the parent compound</dd>
- <dt><code>DT90</code></dt><dd>The resulting DT90 of the parent compound</dd>
- <dt><code>dataset</code></dt><dd>The FOCUS dataset that was used</dd>
- </dl></p>
+ <p>A data frame containing the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>package</code></dt><dd><p>a factor giving the name of the software package</p></dd>
+ <dt><code>M0</code></dt><dd><p>The fitted initial concentration of the parent compound</p></dd>
+ <dt><code>k</code></dt><dd><p>The fitted first-order degradation rate constant</p></dd>
+ <dt><code>DT50</code></dt><dd><p>The resulting half-life of the parent compound</p></dd>
+ <dt><code>DT90</code></dt><dd><p>The resulting DT90 of the parent compound</p></dd>
+ <dt><code>dataset</code></dt><dd><p>The FOCUS dataset that was used</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -128,7 +130,7 @@ in this fit.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/FOCUS_2006_datasets.html b/docs/reference/FOCUS_2006_datasets.html
index 71dbe761..93901bfa 100644
--- a/docs/reference/FOCUS_2006_datasets.html
+++ b/docs/reference/FOCUS_2006_datasets.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — FOCUS_2006_datasets • mkin</title>
+<title>Datasets A to F from the FOCUS Kinetics report from 2006 — FOCUS_2006_datasets • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,24 +100,22 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Datasets A to F from the FOCUS Kinetics report from 2006</h1>
</div>
<p>Data taken from FOCUS (2006), p. 258.</p>
- <pre><span class='no'>FOCUS_2006_datasets</span></pre>
+ <pre class="usage"><span class='no'>FOCUS_2006_datasets</span></pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>6 datasets with observations on the following variables.
- <dl class='dl-horizontal'>
- <dt><code>name</code></dt><dd>a factor containing the name of the observed variable</dd>
- <dt><code>time</code></dt><dd>a numeric vector containing time points</dd>
- <dt><code>value</code></dt><dd>a numeric vector containing concentrations in percent of applied radioactivity</dd>
- </dl></p>
+ <p>6 datasets with observations on the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>name</code></dt><dd><p>a factor containing the name of the observed variable</p></dd>
+ <dt><code>time</code></dt><dd><p>a numeric vector containing time points</p></dd>
+ <dt><code>value</code></dt><dd><p>a numeric vector containing concentrations in percent of applied radioactivity</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -121,7 +123,7 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/FOMC.solution.html b/docs/reference/FOMC.solution.html
index 8d0ed869..67a37b4f 100644
--- a/docs/reference/FOMC.solution.html
+++ b/docs/reference/FOMC.solution.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> First-Order Multi-Compartment kinetics — FOMC.solution • mkin</title>
+<title>First-Order Multi-Compartment kinetics — FOMC.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,35 +100,40 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> First-Order Multi-Compartment kinetics </h1>
+ <h1>First-Order Multi-Compartment kinetics</h1>
</div>
<p>Function describing exponential decline from a defined starting value, with
a decreasing rate constant.</p>
-
- <p>The form given here differs slightly from the original reference by Gustafson
+<p>The form given here differs slightly from the original reference by Gustafson
and Holden (1990). The parameter <code>beta</code> corresponds to 1/beta in the
original equation.</p>
- <pre><span class='fu'>FOMC.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>alpha</span>, <span class='no'>beta</span>)</pre>
+ <pre class="usage"><span class='fu'>FOMC.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>alpha</span>, <span class='no'>beta</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>alpha</dt>
- <dd>
- Shape parameter determined by coefficient of variation of rate constant
- values. </dd>
- <dt>beta</dt>
- <dd>
- Location parameter.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>alpha</th>
+ <td><p>Shape parameter determined by coefficient of variation of rate constant
+ values.</p></td>
+ </tr>
+ <tr>
+ <th>beta</th>
+ <td><p>Location parameter.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
@@ -142,8 +152,8 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
- <p>Gustafson DI and Holden LR (1990) Nonlinear pesticide dissipation in soil: A
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
+<p>Gustafson DI and Holden LR (1990) Nonlinear pesticide dissipation in soil: A
new model based on spatial variability. <em>Environmental Science and
Technology</em> <b>24</b>, 1032-1038</p>
diff --git a/docs/reference/HS.solution.html b/docs/reference/HS.solution.html
index b8e6f524..3d608a2f 100644
--- a/docs/reference/HS.solution.html
+++ b/docs/reference/HS.solution.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> Hockey-Stick kinetics — HS.solution • mkin</title>
+<title>Hockey-Stick kinetics — HS.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,7 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> Hockey-Stick kinetics </h1>
+ <h1>Hockey-Stick kinetics</h1>
</div>
@@ -103,23 +108,34 @@
between them.</p>
- <pre><span class='fu'>HS.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k1</span>, <span class='no'>k2</span>, <span class='no'>tb</span>)</pre>
+ <pre class="usage"><span class='fu'>HS.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k1</span>, <span class='no'>k2</span>, <span class='no'>tb</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>k1</dt>
- <dd> First kinetic constant. </dd>
- <dt>k2</dt>
- <dd> Second kinetic constant. </dd>
- <dt>tb</dt>
- <dd> Break point. Before this time, exponential decline according
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>k1</th>
+ <td><p>First kinetic constant.</p></td>
+ </tr>
+ <tr>
+ <th>k2</th>
+ <td><p>Second kinetic constant.</p></td>
+ </tr>
+ <tr>
+ <th>tb</th>
+ <td><p>Break point. Before this time, exponential decline according
to <code>k1</code> is calculated, after this time, exponential decline proceeds
- according to <code>k2</code>. </dd>
- </dl>
+ according to <code>k2</code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -131,7 +147,7 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/IORE.solution.html b/docs/reference/IORE.solution.html
index 8caef574..4a95f106 100644
--- a/docs/reference/IORE.solution.html
+++ b/docs/reference/IORE.solution.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> Indeterminate order rate equation kinetics — IORE.solution • mkin</title>
+<title>Indeterminate order rate equation kinetics — IORE.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,7 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> Indeterminate order rate equation kinetics </h1>
+ <h1>Indeterminate order rate equation kinetics</h1>
</div>
@@ -103,19 +108,28 @@
a concentration dependent rate constant.</p>
- <pre><span class='fu'>IORE.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k__iore</span>, <span class='no'>N</span>)</pre>
+ <pre class="usage"><span class='fu'>IORE.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k__iore</span>, <span class='no'>N</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>k__iore</dt>
- <dd> Rate constant. Note that this depends on the concentration units used. </dd>
- <dt>N</dt>
- <dd> Exponent describing the nonlinearity of the rate equation </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>k__iore</th>
+ <td><p>Rate constant. Note that this depends on the concentration units used.</p></td>
+ </tr>
+ <tr>
+ <th>N</th>
+ <td><p>Exponent describing the nonlinearity of the rate equation</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
diff --git a/docs/reference/SFO.solution.html b/docs/reference/SFO.solution.html
index e2c93102..08928135 100644
--- a/docs/reference/SFO.solution.html
+++ b/docs/reference/SFO.solution.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> Single First-Order kinetics — SFO.solution • mkin</title>
+<title>Single First-Order kinetics — SFO.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,24 +100,31 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> Single First-Order kinetics </h1>
+ <h1>Single First-Order kinetics</h1>
</div>
<p>Function describing exponential decline from a defined starting value.</p>
- <pre><span class='fu'>SFO.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k</span>)</pre>
+ <pre class="usage"><span class='fu'>SFO.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>k</dt>
- <dd> Kinetic constant. </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>k</th>
+ <td><p>Kinetic constant.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -124,7 +136,7 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/SFORB.solution.html b/docs/reference/SFORB.solution.html
index 4a73ba9e..112e157d 100644
--- a/docs/reference/SFORB.solution.html
+++ b/docs/reference/SFORB.solution.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> Single First-Order Reversible Binding kinetics — SFORB.solution • mkin</title>
+<title>Single First-Order Reversible Binding kinetics — SFORB.solution • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,7 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> Single First-Order Reversible Binding kinetics </h1>
+ <h1>Single First-Order Reversible Binding kinetics</h1>
</div>
@@ -106,21 +111,32 @@
no substance in the bound fraction.</p>
- <pre><span class='fu'>SFORB.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k_12</span>, <span class='no'>k_21</span>, <span class='no'>k_1output</span>)</pre>
+ <pre class="usage"><span class='fu'>SFORB.solution</span>(<span class='no'>t</span>, <span class='no'>parent.0</span>, <span class='no'>k_12</span>, <span class='no'>k_21</span>, <span class='no'>k_1output</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>t</dt>
- <dd> Time. </dd>
- <dt>parent.0</dt>
- <dd> Starting value for the response variable at time zero. </dd>
- <dt>k_12</dt>
- <dd> Kinetic constant describing transfer from free to bound. </dd>
- <dt>k_21</dt>
- <dd> Kinetic constant describing transfer from bound to free. </dd>
- <dt>k_1output</dt>
- <dd> Kinetic constant describing degradation of the free fraction. </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>t</th>
+ <td><p>Time.</p></td>
+ </tr>
+ <tr>
+ <th>parent.0</th>
+ <td><p>Starting value for the response variable at time zero.</p></td>
+ </tr>
+ <tr>
+ <th>k_12</th>
+ <td><p>Kinetic constant describing transfer from free to bound.</p></td>
+ </tr>
+ <tr>
+ <th>k_21</th>
+ <td><p>Kinetic constant describing transfer from bound to free.</p></td>
+ </tr>
+ <tr>
+ <th>k_1output</th>
+ <td><p>Kinetic constant describing degradation of the free fraction.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -133,7 +149,7 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/add_err.html b/docs/reference/add_err.html
index aab42f56..c9e6bf3f 100644
--- a/docs/reference/add_err.html
+++ b/docs/reference/add_err.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — add_err • mkin</title>
+<title>Add normally distributed errors to simulated kinetic degradation data — add_err • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Add normally distributed errors to simulated kinetic degradation data</h1>
</div>
@@ -106,45 +109,46 @@
may depend on the predicted value and is specified as a standard deviation.</p>
- <pre><span class='fu'>add_err</span>(<span class='no'>prediction</span>, <span class='no'>sdfunc</span>,
+ <pre class="usage"><span class='fu'>add_err</span>(<span class='no'>prediction</span>, <span class='no'>sdfunc</span>,
<span class='kw'>n</span> <span class='kw'>=</span> <span class='fl'>1000</span>, <span class='kw'>LOD</span> <span class='kw'>=</span> <span class='fl'>0.1</span>, <span class='kw'>reps</span> <span class='kw'>=</span> <span class='fl'>2</span>,
<span class='kw'>digits</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>seed</span> <span class='kw'>=</span> <span class='fl'>NA</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>prediction</dt>
- <dd>
- A prediction from a kinetic model as produced by <code><a href='mkinpredict.html'>mkinpredict</a></code>.
- </dd>
- <dt>sdfunc</dt>
- <dd>
- A function taking the predicted value as its only argument and returning
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>prediction</th>
+ <td><p>A prediction from a kinetic model as produced by <code><a href='mkinpredict.html'>mkinpredict</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>sdfunc</th>
+ <td><p>A function taking the predicted value as its only argument and returning
a standard deviation that should be used for generating the random error
- terms for this value.
- </dd>
- <dt>n</dt>
- <dd>
- The number of datasets to be generated.
- </dd>
- <dt>LOD</dt>
- <dd>
- The limit of detection (LOD). Values that are below the LOD after adding
- the random error will be set to NA.
- </dd>
- <dt>reps</dt>
- <dd>
- The number of replicates to be generated within the datasets.
- </dd>
- <dt>digits</dt>
- <dd>
- The number of digits to which the values will be rounded.
- </dd>
- <dt>seed</dt>
- <dd>
- The seed used for the generation of random numbers. If NA, the seed
- is not set.
- </dd>
- </dl>
+ terms for this value.</p></td>
+ </tr>
+ <tr>
+ <th>n</th>
+ <td><p>The number of datasets to be generated.</p></td>
+ </tr>
+ <tr>
+ <th>LOD</th>
+ <td><p>The limit of detection (LOD). Values that are below the LOD after adding
+ the random error will be set to NA.</p></td>
+ </tr>
+ <tr>
+ <th>reps</th>
+ <td><p>The number of replicates to be generated within the datasets.</p></td>
+ </tr>
+ <tr>
+ <th>digits</th>
+ <td><p>The number of digits to which the values will be rounded.</p></td>
+ </tr>
+ <tr>
+ <th>seed</th>
+ <td><p>The seed used for the generation of random numbers. If NA, the seed
+ is not set.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/endpoints.html b/docs/reference/endpoints.html
index 4145825a..c48854fd 100644
--- a/docs/reference/endpoints.html
+++ b/docs/reference/endpoints.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — endpoints • mkin</title>
+<title>Function to calculate endpoints for further use from kinetic models fitted with mkinfit — endpoints • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to calculate endpoints for further use from kinetic models fitted with mkinfit</h1>
</div>
@@ -107,15 +110,16 @@ the Eigenvalues are returned. These are equivalent to the rate constantes of the
with the advantage that the SFORB model can also be used for metabolites.</p>
- <pre><span class='fu'>endpoints</span>(<span class='no'>fit</span>)</pre>
+ <pre class="usage"><span class='fu'>endpoints</span>(<span class='no'>fit</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>fit</dt>
- <dd>
- An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>fit</th>
+ <td><p>An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
diff --git a/docs/reference/geometric_mean.html b/docs/reference/geometric_mean.html
index 828ec471..22d06fec 100644
--- a/docs/reference/geometric_mean.html
+++ b/docs/reference/geometric_mean.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title> Calculate the geometric mean — geometric_mean • mkin</title>
+<title>Calculate the geometric mean — geometric_mean • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,22 +100,27 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1> Calculate the geometric mean </h1>
+ <h1>Calculate the geometric mean</h1>
</div>
<p>Function calculating the geometric mean of numeric vectors</p>
- <pre><span class='fu'>geometric_mean</span>(<span class='no'>x</span>, <span class='kw'>na.rm</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</pre>
+ <pre class="usage"><span class='fu'>geometric_mean</span>(<span class='no'>x</span>, <span class='kw'>na.rm</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd> A numeric vector </dd>
- <dt>na.rm</dt>
- <dd> Should NA values be ignored </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>A numeric vector</p></td>
+ </tr>
+ <tr>
+ <th>na.rm</th>
+ <td><p>Should NA values be ignored</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/ilr.html b/docs/reference/ilr.html
index 4262fa81..808bcdb7 100644
--- a/docs/reference/ilr.html
+++ b/docs/reference/ilr.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — ilr • mkin</title>
+<title>Function to perform isometric log-ratio transformation — ilr • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,25 +100,25 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to perform isometric log-ratio transformation</h1>
</div>
<p>This implementation is a special case of the class of isometric log-ratio transformations.</p>
- <pre><span class='fu'>ilr</span>(<span class='no'>x</span>)
+ <pre class="usage"><span class='fu'>ilr</span>(<span class='no'>x</span>)
<span class='fu'>invilr</span>(<span class='no'>x</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>
- A numeric vector. Naturally, the forward transformation is only sensible for
- vectors with all elements being greater than zero.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>A numeric vector. Naturally, the forward transformation is only sensible for
+ vectors with all elements being greater than zero.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 2e997ef0..16280a9d 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -95,250 +100,302 @@
<div class="row">
<div class="col-md-9">
<div class="page-header">
- <h1>Function reference</h1>
- <h4>version&nbsp;0.9.45.1</h4>
+ <h1>
+ Reference
+ <small>version&nbsp;0.9.45.2</small>
+ </h1>
</div>
<div class="contents">
- <h2 id="section-main-functions" class="hasAnchor"><a href="#section-main-functions" class="anchor"></a>Main functions</h2>
- <p class="section-desc"><p>Essential functionality</p></p>
-
-
- <p><a href="mkinmod.html">
-</a></p>
- <ul>
- <li><code><a href="mkinmod.html">mkinmod</a></code></li>
- </ul>
-
- <p><a href="mkinfit.html">
-</a></p>
- <ul>
- <li><code><a href="mkinfit.html">mkinfit</a></code></li>
- </ul>
-
- <p><a href="mmkin.html">
-</a></p>
- <ul>
- <li><code><a href="mmkin.html">mmkin</a></code></li>
- </ul>
- <h2 id="section-show-results" class="hasAnchor"><a href="#section-show-results" class="anchor"></a>Show results</h2>
- <p class="section-desc"><p>Functions working with mkinfit objects</p></p>
-
-
- <p><a href="plot.mkinfit.html">
-</a></p>
- <ul>
- <li><code><a href="plot.mkinfit.html">plot.mkinfit</a></code></li><li><code><a href="plot.mkinfit.html">plot_sep</a></code></li>
- </ul>
-
- <p><a href="summary.mkinfit.html">
-</a></p>
- <ul>
- <li><code><a href="summary.mkinfit.html">summary.mkinfit</a></code></li><li><code><a href="summary.mkinfit.html">print.summary.mkinfit</a></code></li>
- </ul>
-
- <p><a href="mkinresplot.html">
-</a></p>
- <ul>
- <li><code><a href="mkinresplot.html">mkinresplot</a></code></li>
- </ul>
-
- <p><a href="mkinparplot.html">
-</a></p>
- <ul>
- <li><code><a href="mkinparplot.html">mkinparplot</a></code></li>
- </ul>
-
- <p><a href="endpoints.html">
-</a></p>
- <ul>
- <li><code><a href="endpoints.html">endpoints</a></code></li>
- </ul>
-
- <p><a href="mkinerrmin.html">
-</a></p>
- <ul>
- <li><code><a href="mkinerrmin.html">mkinerrmin</a></code></li>
- </ul>
- <h2 id="section-work-with-mmkin-objects" class="hasAnchor"><a href="#section-work-with-mmkin-objects" class="anchor"></a>Work with mmkin objects</h2>
- <p class="section-desc"><p>Functions working with aggregated results</p></p>
-
-
- <p><a href="Extract.mmkin.html">Subsetting method for mmkin objects</a></p>
- <ul>
- <li><code><a href="Extract.mmkin.html">[.mmkin</a></code></li>
- </ul>
-
- <p><a href="plot.mmkin.html">
-</a></p>
- <ul>
- <li><code><a href="plot.mmkin.html">plot.mmkin</a></code></li>
- </ul>
- <h2 id="section-datasets-and-known-results" class="hasAnchor"><a href="#section-datasets-and-known-results" class="anchor"></a>Datasets and known results</h2>
- <p class="section-desc"></p>
-
-
- <p><a href="FOCUS_2006_datasets.html">
-</a></p>
- <ul>
- <li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_A</a></code></li><li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_B</a></code></li><li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_C</a></code></li><li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_D</a></code></li><li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_E</a></code></li><li><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_F</a></code></li>
- </ul>
-
- <p><a href="FOCUS_2006_SFO_ref_A_to_F.html">
-</a></p>
- <ul>
- <li><code><a href="FOCUS_2006_SFO_ref_A_to_F.html">FOCUS_2006_SFO_ref_A_to_F</a></code></li>
- </ul>
-
- <p><a href="FOCUS_2006_FOMC_ref_A_to_F.html">
-</a></p>
- <ul>
- <li><code><a href="FOCUS_2006_FOMC_ref_A_to_F.html">FOCUS_2006_FOMC_ref_A_to_F</a></code></li>
- </ul>
-
- <p><a href="FOCUS_2006_HS_ref_A_to_F.html">
-</a></p>
- <ul>
- <li><code><a href="FOCUS_2006_HS_ref_A_to_F.html">FOCUS_2006_HS_ref_A_to_F</a></code></li>
- </ul>
-
- <p><a href="FOCUS_2006_DFOP_ref_A_to_B.html">
-</a></p>
- <ul>
- <li><code><a href="FOCUS_2006_DFOP_ref_A_to_B.html">FOCUS_2006_DFOP_ref_A_to_B</a></code></li>
- </ul>
-
- <p><a href="mccall81_245T.html">
-</a></p>
- <ul>
- <li><code><a href="mccall81_245T.html">mccall81_245T</a></code></li>
- </ul>
-
- <p><a href="schaefer07_complex_case.html">
-</a></p>
- <ul>
- <li><code><a href="schaefer07_complex_case.html">schaefer07_complex_case</a></code></li><li><code><a href="schaefer07_complex_case.html">schaefer07_complex_results</a></code></li>
- </ul>
-
- <p><a href="synthetic_data_for_UBA.html">
-</a></p>
- <ul>
- <li><code><a href="synthetic_data_for_UBA.html">synthetic_data_for_UBA_2014</a></code></li>
- </ul>
-
- <p><a href="mkinds.html">A dataset class for mkin</a></p>
- <ul>
- <li><code><a href="mkinds.html">mkinds</a></code></li>
- </ul>
-
- <p><a href="print.mkinds.html">
-</a></p>
- <ul>
- <li><code><a href="print.mkinds.html">print.mkinds</a></code></li>
- </ul>
- <h2 id="section-helper-functions" class="hasAnchor"><a href="#section-helper-functions" class="anchor"></a>Helper functions</h2>
- <p class="section-desc"></p>
-
-
- <p><a href="mkin_wide_to_long.html">
-</a></p>
- <ul>
- <li><code><a href="mkin_wide_to_long.html">mkin_wide_to_long</a></code></li>
- </ul>
-
- <p><a href="mkin_long_to_wide.html">
-</a></p>
- <ul>
- <li><code><a href="mkin_long_to_wide.html">mkin_long_to_wide</a></code></li>
- </ul>
-
- <p><a href="mkinsub.html">
-</a></p>
- <ul>
- <li><code><a href="mkinsub.html">mkinsub</a></code></li>
- </ul>
-
- <p><a href="print.mkinmod.html">
-</a></p>
- <ul>
- <li><code><a href="print.mkinmod.html">print.mkinmod</a></code></li>
- </ul>
-
- <p><a href="mkinpredict.html">
-</a></p>
- <ul>
- <li><code><a href="mkinpredict.html">mkinpredict</a></code></li>
- </ul>
-
- <p><a href="transform_odeparms.html">
-</a></p>
- <ul>
- <li><code><a href="transform_odeparms.html">transform_odeparms</a></code></li><li><code><a href="transform_odeparms.html">backtransform_odeparms</a></code></li>
- </ul>
-
- <p><a href="ilr.html">
-</a></p>
- <ul>
- <li><code><a href="ilr.html">ilr</a></code></li><li><code><a href="ilr.html">invilr</a></code></li>
- </ul>
-
- <p><a href="geometric_mean.html"> Calculate the geometric mean </a></p>
- <ul>
- <li><code><a href="geometric_mean.html">geometric_mean</a></code></li>
- </ul>
- <h2 id="section-analytical-solutions" class="hasAnchor"><a href="#section-analytical-solutions" class="anchor"></a>Analytical solutions</h2>
- <p class="section-desc"><p>Parent only model solutions</p></p>
+ <table class="ref-index">
-
- <p><a href="SFO.solution.html"> Single First-Order kinetics </a></p>
- <ul>
- <li><code><a href="SFO.solution.html">SFO.solution</a></code></li>
- </ul>
-
- <p><a href="FOMC.solution.html"> First-Order Multi-Compartment kinetics </a></p>
- <ul>
- <li><code><a href="FOMC.solution.html">FOMC.solution</a></code></li>
- </ul>
-
- <p><a href="DFOP.solution.html">
-</a></p>
- <ul>
- <li><code><a href="DFOP.solution.html">DFOP.solution</a></code></li>
- </ul>
-
- <p><a href="SFORB.solution.html"> Single First-Order Reversible Binding kinetics </a></p>
- <ul>
- <li><code><a href="SFORB.solution.html">SFORB.solution</a></code></li>
- </ul>
-
- <p><a href="HS.solution.html"> Hockey-Stick kinetics </a></p>
- <ul>
- <li><code><a href="HS.solution.html">HS.solution</a></code></li>
- </ul>
-
- <p><a href="IORE.solution.html"> Indeterminate order rate equation kinetics </a></p>
- <ul>
- <li><code><a href="IORE.solution.html">IORE.solution</a></code></li>
- </ul>
- <h2 id="section-generate-synthetic-datasets" class="hasAnchor"><a href="#section-generate-synthetic-datasets" class="anchor"></a>Generate synthetic datasets</h2>
- <p class="section-desc"></p>
+ <colgroup>
+ <col class="alias" />
+ <col class="title" />
+ </colgroup>
-
- <p><a href="add_err.html">
-</a></p>
- <ul>
- <li><code><a href="add_err.html">add_err</a></code></li>
- </ul>
- <h2 id="section-deprecated-functions" class="hasAnchor"><a href="#section-deprecated-functions" class="anchor"></a>Deprecated functions</h2>
- <p class="section-desc"><p>Functions that have been superseeded</p></p>
-
-
- <p><a href="mkinplot.html">
-</a></p>
- <ul>
- <li><code><a href="mkinplot.html">mkinplot</a></code></li>
- </ul>
-
+ <tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-main-functions" class="hasAnchor"><a href="#section-main-functions" class="anchor"></a>Main functions</h2>
+ <p class="section-desc"><p>Essential functionality</p></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinmod.html">mkinmod</a></code> </p>
+ </td>
+ <td><p>Function to set up a kinetic model with one or more state variables</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinfit.html">mkinfit</a></code> </p>
+ </td>
+ <td><p>Fit a kinetic model to data with one or more state variables</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mmkin.html">mmkin</a></code> </p>
+ </td>
+ <td><p>Fit one or more kinetic models with one or more state variables to one or more datasets</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-show-results" class="hasAnchor"><a href="#section-show-results" class="anchor"></a>Show results</h2>
+ <p class="section-desc"><p>Functions working with mkinfit objects</p></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="plot.mkinfit.html">plot.mkinfit</a></code> </p>
+ </td>
+ <td><p>Plot the observed data and the fitted model of an mkinfit object</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="summary.mkinfit.html">summary</a></code> <code><a href="summary.mkinfit.html">print</a></code> </p>
+ </td>
+ <td><p>Summary method for class "mkinfit"</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinresplot.html">mkinresplot</a></code> </p>
+ </td>
+ <td><p>Function to plot residuals stored in an mkin object</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinparplot.html">mkinparplot</a></code> </p>
+ </td>
+ <td><p>Function to plot the confidence intervals obtained using mkinfit</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="endpoints.html">endpoints</a></code> </p>
+ </td>
+ <td><p>Function to calculate endpoints for further use from kinetic models fitted with mkinfit</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinerrmin.html">mkinerrmin</a></code> </p>
+ </td>
+ <td><p>Calculate the minimum error to assume in order to pass the variance test</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-work-with-mmkin-objects" class="hasAnchor"><a href="#section-work-with-mmkin-objects" class="anchor"></a>Work with mmkin objects</h2>
+ <p class="section-desc"><p>Functions working with aggregated results</p></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="plot.mmkin.html">plot</a></code> </p>
+ </td>
+ <td><p>Plot model fits (observed and fitted) and the residuals for a row or column of an mmkin object</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-datasets-and-known-results" class="hasAnchor"><a href="#section-datasets-and-known-results" class="anchor"></a>Datasets and known results</h2>
+ <p class="section-desc"></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOCUS_2006_datasets.html">FOCUS_2006_datasets</a></code> </p>
+ </td>
+ <td><p>Datasets A to F from the FOCUS Kinetics report from 2006</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOCUS_2006_SFO_ref_A_to_F.html">data</a></code> </p>
+ </td>
+ <td><p>Results of fitting the SFO model to Datasets A to F of FOCUS (2006)</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOCUS_2006_FOMC_ref_A_to_F.html">data</a></code> </p>
+ </td>
+ <td><p>Results of fitting the FOMC model to Datasets A to F of FOCUS (2006)</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOCUS_2006_HS_ref_A_to_F.html">data</a></code> </p>
+ </td>
+ <td><p>Results of fitting the HS model to Datasets A to F of FOCUS (2006)</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOCUS_2006_DFOP_ref_A_to_B.html">data</a></code> </p>
+ </td>
+ <td><p>Results of fitting the DFOP model to Datasets A to B of FOCUS (2006)</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mccall81_245T.html">mccall81_245T</a></code> </p>
+ </td>
+ <td><p>Datasets on aerobic soil metabolism of 2,4,5-T in six soils</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="schaefer07_complex_case.html">data</a></code> </p>
+ </td>
+ <td><p>Metabolism data set used for checking the software quality of KinGUI</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="synthetic_data_for_UBA.html">synthetic_data_for_UBA_2014</a></code> </p>
+ </td>
+ <td><p>Synthetic datasets for one parent compound with two metabolites</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinds.html">mkinds</a></code> </p>
+ </td>
+ <td><p>A dataset class for mkin</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="print.mkinds.html">print</a></code> </p>
+ </td>
+ <td><p>Print mkinds objects</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-helper-functions" class="hasAnchor"><a href="#section-helper-functions" class="anchor"></a>Helper functions</h2>
+ <p class="section-desc"></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkin_wide_to_long.html">mkin_wide_to_long</a></code> </p>
+ </td>
+ <td><p>Convert a dataframe with observations over time into long format</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkin_long_to_wide.html">mkin_long_to_wide</a></code> </p>
+ </td>
+ <td><p>Convert a dataframe from long to wide format</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinsub.html">mkinsub</a></code> </p>
+ </td>
+ <td><p>Function to set up a kinetic submodel for one state variable</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="print.mkinmod.html">print</a></code> </p>
+ </td>
+ <td><p>Print mkinmod objects</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinpredict.html">mkinpredict</a></code> </p>
+ </td>
+ <td><p>Produce predictions from a kinetic model using specific parameters</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="transform_odeparms.html">transform_odeparms</a></code> <code><a href="transform_odeparms.html">backtransform_odeparms</a></code> </p>
+ </td>
+ <td><p>Functions to transform and backtransform kinetic parameters for fitting</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="ilr.html">ilr</a></code> <code><a href="ilr.html">invilr</a></code> </p>
+ </td>
+ <td><p>Function to perform isometric log-ratio transformation</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="geometric_mean.html">geometric_mean</a></code> </p>
+ </td>
+ <td><p>Calculate the geometric mean</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-analytical-solutions" class="hasAnchor"><a href="#section-analytical-solutions" class="anchor"></a>Analytical solutions</h2>
+ <p class="section-desc"><p>Parent only model solutions</p></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="SFO.solution.html">SFO.solution</a></code> </p>
+ </td>
+ <td><p>Single First-Order kinetics</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="FOMC.solution.html">FOMC.solution</a></code> </p>
+ </td>
+ <td><p>First-Order Multi-Compartment kinetics</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="DFOP.solution.html">DFOP.solution</a></code> </p>
+ </td>
+ <td><p>Double First-Order in Parallel kinetics</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="SFORB.solution.html">SFORB.solution</a></code> </p>
+ </td>
+ <td><p>Single First-Order Reversible Binding kinetics</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="HS.solution.html">HS.solution</a></code> </p>
+ </td>
+ <td><p>Hockey-Stick kinetics</p></td>
+ </tr><tr>
+ <!-- -->
+ <td>
+ <p><code><a href="IORE.solution.html">IORE.solution</a></code> </p>
+ </td>
+ <td><p>Indeterminate order rate equation kinetics</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-generate-synthetic-datasets" class="hasAnchor"><a href="#section-generate-synthetic-datasets" class="anchor"></a>Generate synthetic datasets</h2>
+ <p class="section-desc"></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="add_err.html">add_err</a></code> </p>
+ </td>
+ <td><p>Add normally distributed errors to simulated kinetic degradation data</p></td>
+ </tr>
+ </tbody><tbody>
+ <tr>
+ <th colspan="2">
+ <h2 id="section-deprecated-functions" class="hasAnchor"><a href="#section-deprecated-functions" class="anchor"></a>Deprecated functions</h2>
+ <p class="section-desc"><p>Functions that have been superseeded</p></p>
+ </th>
+ </tr>
+ <tr>
+ <!-- -->
+ <td>
+ <p><code><a href="mkinplot.html">mkinplot</a></code> </p>
+ </td>
+ <td><p>Plot the observed data and the fitted model of an mkinfit object</p></td>
+ </tr>
+ </tbody>
+ </table>
</div>
</div>
diff --git a/docs/reference/mccall81_245T.html b/docs/reference/mccall81_245T.html
index 4fa32b30..9a681191 100644
--- a/docs/reference/mccall81_245T.html
+++ b/docs/reference/mccall81_245T.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mccall81_245T • mkin</title>
+<title>Datasets on aerobic soil metabolism of 2,4,5-T in six soils — mccall81_245T • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Datasets on aerobic soil metabolism of 2,4,5-T in six soils</h1>
</div>
@@ -106,21 +109,20 @@
extracts.</p>
- <pre><span class='no'>mccall81_245T</span></pre>
+ <pre class="usage"><span class='no'>mccall81_245T</span></pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A dataframe containing the following variables.
- <dl class='dl-horizontal'>
- <dt><code>name</code></dt><dd>the name of the compound observed. Note that T245 is used as
+ <p>A dataframe containing the following variables.</p><dl class='dl-horizontal'>
+ <dt><code>name</code></dt><dd><p>the name of the compound observed. Note that T245 is used as
an acronym for 2,4,5-T. T245 is a legitimate object name
in R, which is necessary for specifying models using
- <code><a href='mkinmod.html'>mkinmod</a></code>.</dd>
- <dt><code>time</code></dt><dd>a numeric vector containing sampling times in days after
- treatment</dd>
- <dt><code>value</code></dt><dd>a numeric vector containing concentrations in percent of applied radioactivity</dd>
- <dt><code>soil</code></dt><dd>a factor containing the name of the soil</dd>
- </dl></p>
+ <code><a href='mkinmod.html'>mkinmod</a></code>.</p></dd>
+ <dt><code>time</code></dt><dd><p>a numeric vector containing sampling times in days after
+ treatment</p></dd>
+ <dt><code>value</code></dt><dd><p>a numeric vector containing concentrations in percent of applied radioactivity</p></dd>
+ <dt><code>soil</code></dt><dd><p>a factor containing the name of the soil</p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
@@ -132,16 +134,11 @@
<pre class="examples"><div class='input'> <span class='no'>SFO_SFO_SFO</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinmod.html'>mkinmod</a></span>(<span class='kw'>T245</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>, <span class='kw'>to</span> <span class='kw'>=</span> <span class='st'>"phenol"</span>),
<span class='kw'>phenol</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>, <span class='kw'>to</span> <span class='kw'>=</span> <span class='st'>"anisole"</span>),
<span class='kw'>anisole</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>))</div><div class='output co'>#&gt; <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'>
- <span class='no'>fit.1</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO_SFO</span>, <span class='fu'>subset</span>(<span class='no'>mccall81_245T</span>, <span class='no'>soil</span> <span class='kw'>==</span> <span class='st'>"Commerce"</span>), <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Optimisation by method Port did not converge.</span>
-#&gt; <span class='warning'>Convergence code is 1</span></div><div class='input'> <span class='fu'>summary</span>(<span class='no'>fit.1</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:44:52 2017
-#&gt; Date of summary: Wed Mar 15 09:44:52 2017
-#&gt;
-#&gt;
-#&gt; Warning: Optimisation by method Port did not converge.
-#&gt; Convergence code is 1
-#&gt;
+ <span class='no'>fit.1</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO_SFO</span>, <span class='fu'>subset</span>(<span class='no'>mccall81_245T</span>, <span class='no'>soil</span> <span class='kw'>==</span> <span class='st'>"Commerce"</span>), <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
+ <span class='fu'>summary</span>(<span class='no'>fit.1</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:02 2017
+#&gt; Date of summary: Fri May 5 12:45:02 2017
#&gt;
#&gt; Equations:
#&gt; d_T245/dt = - k_T245_sink * T245 - k_T245_phenol * T245
@@ -151,7 +148,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 590 model solutions performed in 3.519 s
+#&gt; Fitted with method Port using 612 model solutions performed in 3.576 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -183,7 +180,7 @@
#&gt; T245_0 103.9000 NA NA NA
#&gt; log_k_T245_sink -4.1130 NA NA NA
#&gt; log_k_T245_phenol -3.6120 NA NA NA
-#&gt; log_k_phenol_sink -26.3900 NA NA NA
+#&gt; log_k_phenol_sink -26.8400 NA NA NA
#&gt; log_k_phenol_anisole -0.9037 NA NA NA
#&gt; log_k_anisole_sink -5.0090 NA NA NA
#&gt;
@@ -198,8 +195,8 @@
#&gt; Estimate t value Pr(&gt;t) Lower Upper
#&gt; T245_0 1.039e+02 4.282e+01 7.236e-20 NA NA
#&gt; k_T245_sink 1.636e-02 8.901e-01 1.926e-01 NA NA
-#&gt; k_T245_phenol 2.701e-02 1.504e+00 7.498e-02 NA NA
-#&gt; k_phenol_sink 3.457e-12 1.230e-11 5.000e-01 NA NA
+#&gt; k_T245_phenol 2.701e-02 1.504e+00 7.499e-02 NA NA
+#&gt; k_phenol_sink 2.212e-12 7.870e-12 5.000e-01 NA NA
#&gt; k_phenol_anisole 4.051e-01 2.518e+00 1.075e-02 NA NA
#&gt; k_anisole_sink 6.679e-03 8.146e+00 9.469e-08 NA NA
#&gt;
@@ -214,7 +211,7 @@
#&gt; ff
#&gt; T245_sink 3.772e-01
#&gt; T245_phenol 6.228e-01
-#&gt; phenol_sink 8.534e-12
+#&gt; phenol_sink 5.462e-12
#&gt; phenol_anisole 1.000e+00
#&gt; anisole_sink 1.000e+00
#&gt;
@@ -228,10 +225,10 @@
<span class='no'>fit.2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO_SFO</span>, <span class='fu'>subset</span>(<span class='no'>mccall81_245T</span>, <span class='no'>soil</span> <span class='kw'>==</span> <span class='st'>"Commerce"</span>),
<span class='kw'>parms.ini</span> <span class='kw'>=</span> <span class='fu'>c</span>(<span class='kw'>k_phenol_sink</span> <span class='kw'>=</span> <span class='fl'>0</span>),
<span class='kw'>fixed_parms</span> <span class='kw'>=</span> <span class='st'>"k_phenol_sink"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
- <span class='fu'>summary</span>(<span class='no'>fit.2</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:44:54 2017
-#&gt; Date of summary: Wed Mar 15 09:44:54 2017
+ <span class='fu'>summary</span>(<span class='no'>fit.2</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:04 2017
+#&gt; Date of summary: Fri May 5 12:45:04 2017
#&gt;
#&gt; Equations:
#&gt; d_T245/dt = - k_T245_sink * T245 - k_T245_phenol * T245
@@ -241,7 +238,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 246 model solutions performed in 1.449 s
+#&gt; Fitted with method Port using 246 model solutions performed in 1.461 s
#&gt;
#&gt; Weighting: none
#&gt;
diff --git a/docs/reference/mkin_long_to_wide.html b/docs/reference/mkin_long_to_wide.html
index 9b37726e..8d6432ae 100644
--- a/docs/reference/mkin_long_to_wide.html
+++ b/docs/reference/mkin_long_to_wide.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkin_long_to_wide • mkin</title>
+<title>Convert a dataframe from long to wide format — mkin_long_to_wide • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Convert a dataframe from long to wide format</h1>
</div>
@@ -106,25 +109,26 @@
dependent variables as columns.</p>
- <pre><span class='fu'>mkin_long_to_wide</span>(<span class='no'>long_data</span>, <span class='kw'>time</span> <span class='kw'>=</span> <span class='st'>"time"</span>, <span class='kw'>outtime</span> <span class='kw'>=</span> <span class='st'>"time"</span>)</pre>
+ <pre class="usage"><span class='fu'>mkin_long_to_wide</span>(<span class='no'>long_data</span>, <span class='kw'>time</span> <span class='kw'>=</span> <span class='st'>"time"</span>, <span class='kw'>outtime</span> <span class='kw'>=</span> <span class='st'>"time"</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>long_data</dt>
- <dd>
- The dataframe must contain one variable called &quot;time&quot; with the time values specified by the
- <code>time</code> argument, one column called &quot;name&quot; with the grouping of the observed values, and
- finally one column of observed values called &quot;value&quot;.
-</dd>
- <dt>time</dt>
- <dd>
- The name of the time variable in the long input data.
-</dd>
- <dt>outtime</dt>
- <dd>
- The name of the time variable in the wide output data.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>long_data</th>
+ <td><p>The dataframe must contain one variable called "time" with the time values specified by the
+ <code>time</code> argument, one column called "name" with the grouping of the observed values, and
+ finally one column of observed values called "value".</p></td>
+ </tr>
+ <tr>
+ <th>time</th>
+ <td><p>The name of the time variable in the long input data.</p></td>
+ </tr>
+ <tr>
+ <th>outtime</th>
+ <td><p>The name of the time variable in the wide output data.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mkin_wide_to_long.html b/docs/reference/mkin_wide_to_long.html
index 378d3691..fbb079be 100644
--- a/docs/reference/mkin_wide_to_long.html
+++ b/docs/reference/mkin_wide_to_long.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkin_wide_to_long • mkin</title>
+<title>Convert a dataframe with observations over time into long format — mkin_wide_to_long • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Convert a dataframe with observations over time into long format</h1>
</div>
@@ -105,20 +108,21 @@
dependent variable and converts it into the long form as required by <code>modCost</code>.</p>
- <pre><span class='fu'>mkin_wide_to_long</span>(<span class='no'>wide_data</span>, <span class='kw'>time</span> <span class='kw'>=</span> <span class='st'>"t"</span>)</pre>
+ <pre class="usage"><span class='fu'>mkin_wide_to_long</span>(<span class='no'>wide_data</span>, <span class='kw'>time</span> <span class='kw'>=</span> <span class='st'>"t"</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>wide_data</dt>
- <dd>
- The dataframe must contain one variable with the time values specified by the
- <code>time</code> argument and usually more than one column of observed values.
-</dd>
- <dt>time</dt>
- <dd>
- The name of the time variable.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>wide_data</th>
+ <td><p>The dataframe must contain one variable with the time values specified by the
+ <code>time</code> argument and usually more than one column of observed values.</p></td>
+ </tr>
+ <tr>
+ <th>time</th>
+ <td><p>The name of the time variable.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mkinds.html b/docs/reference/mkinds.html
index 4bfd332b..1c10c54a 100644
--- a/docs/reference/mkinds.html
+++ b/docs/reference/mkinds.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -102,7 +107,7 @@
<p>A dataset class for mkin</p>
- <pre><span class='no'>mkinds</span></pre>
+ <pre class="usage"><span class='no'>mkinds</span></pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
@@ -110,17 +115,17 @@
<h2 class="hasAnchor" id="fields"><a class="anchor" href="#fields"></a>Fields</h2>
- <p></p>
- <p><dl class='dl-horizontal'>
-<dt><code>title</code></dt><dd>A full title for the dataset</dd></p>
- <p><dt><code>sampling</code></dt><dd>times The sampling times</dd></p>
- <p><dt><code>time_unit</code></dt><dd>The time unit</dd></p>
- <p><dt><code>observed</code></dt><dd>Names of the observed compounds</dd></p>
- <p><dt><code>unit</code></dt><dd>The unit of the observations</dd></p>
- <p><dt><code>replicates</code></dt><dd>The number of replicates</dd></p>
- <p><dt><code>data</code></dt><dd>A dataframe with at least the columns name, time and value
-in order to be compatible with mkinfit</dd>
-</dl></p>
+
+ <dl class='dl-horizontal'>
+<dt><code>title</code></dt><dd><p>A full title for the dataset</p></dd>
+ <dt><code>sampling</code></dt><dd><p>times The sampling times</p></dd>
+ <dt><code>time_unit</code></dt><dd><p>The time unit</p></dd>
+ <dt><code>observed</code></dt><dd><p>Names of the observed compounds</p></dd>
+ <dt><code>unit</code></dt><dd><p>The unit of the observations</p></dd>
+ <dt><code>replicates</code></dt><dd><p>The number of replicates</p></dd>
+ <dt><code>data</code></dt><dd><p>A dataframe with at least the columns name, time and value
+in order to be compatible with mkinfit</p></dd>
+</dl>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/mkinerrmin.html b/docs/reference/mkinerrmin.html
index 97616a41..678750cd 100644
--- a/docs/reference/mkinerrmin.html
+++ b/docs/reference/mkinerrmin.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinerrmin • mkin</title>
+<title>Calculate the minimum error to assume in order to pass the variance test — mkinerrmin • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Calculate the minimum error to assume in order to pass the variance test</h1>
</div>
@@ -105,25 +108,33 @@
chi-squared test as defined in the FOCUS kinetics report from 2006.</p>
- <pre><span class='fu'>mkinerrmin</span>(<span class='no'>fit</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.05</span>)</pre>
+ <pre class="usage"><span class='fu'>mkinerrmin</span>(<span class='no'>fit</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.05</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>fit</dt>
- <dd>
- an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- <dt>alpha</dt>
- <dd>
- The confidence level chosen for the chi-squared test.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>fit</th>
+ <td><p>an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>alpha</th>
+ <td><p>The confidence level chosen for the chi-squared test.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
<p>A dataframe with the following components:</p>
- <p>The dataframe has one row for the total dataset and one further row for
- each observed state variable in the model.</p>
+<dt>err.min</dt><dd><p>The relative error, expressed as a fraction.</p></dd>
+ <dt>n.optim</dt><dd><p>The number of optimised parameters attributed to the data series.</p></dd>
+ <dt>df</dt><dd><p>The number of remaining degrees of freedom for the chi2 error level
+ calculations. Note that mean values are used for the chi2 statistic and
+ therefore every time point with observed values in the series only counts
+ one time.</p></dd>
+ The dataframe has one row for the total dataset and one further row for
+ each observed state variable in the model.
+
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
@@ -135,7 +146,7 @@ chi-squared test as defined in the FOCUS kinetics report from 2006.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/mkinfit.html b/docs/reference/mkinfit.html
index 01c930e2..875bd1dd 100644
--- a/docs/reference/mkinfit.html
+++ b/docs/reference/mkinfit.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinfit • mkin</title>
+<title>Fit a kinetic model to data with one or more state variables — mkinfit • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Fit a kinetic model to data with one or more state variables</h1>
</div>
@@ -111,10 +114,10 @@
In each step of the optimsation, the kinetic model is solved using the
function <code><a href='mkinpredict.html'>mkinpredict</a></code>. The variance of the residuals for each
observed variable can optionally be iteratively reweighted until convergence
- using the argument <code>reweight.method = &quot;obs&quot;</code>.</p>
+ using the argument <code>reweight.method = "obs"</code>.</p>
- <pre><span class='fu'>mkinfit</span>(<span class='no'>mkinmod</span>, <span class='no'>observed</span>,
+ <pre class="usage"><span class='fu'>mkinfit</span>(<span class='no'>mkinmod</span>, <span class='no'>observed</span>,
<span class='kw'>parms.ini</span> <span class='kw'>=</span> <span class='st'>"auto"</span>,
<span class='kw'>state.ini</span> <span class='kw'>=</span> <span class='st'>"auto"</span>,
<span class='kw'>fixed_parms</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>fixed_initials</span> <span class='kw'>=</span> <span class='fu'>names</span>(<span class='no'>mkinmod</span>$<span class='no'>diffs</span>)[-<span class='fl'>1</span>],
@@ -135,228 +138,225 @@
<span class='kw'>trace_parms</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>mkinmod</dt>
- <dd>
- A list of class <code><a href='mkinmod.html'>mkinmod</a></code>, containing the kinetic model to be
- fitted to the data, or one of the shorthand names (&quot;SFO&quot;, &quot;FOMC&quot;, &quot;DFOP&quot;,
- &quot;HS&quot;, &quot;SFORB&quot;). If a shorthand name is given, a parent only degradation
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>mkinmod</th>
+ <td><p>A list of class <code><a href='mkinmod.html'>mkinmod</a></code>, containing the kinetic model to be
+ fitted to the data, or one of the shorthand names ("SFO", "FOMC", "DFOP",
+ "HS", "SFORB"). If a shorthand name is given, a parent only degradation
model is generated for the variable with the highest value in
- <code>observed</code>.
- </dd>
- <dt>observed</dt>
- <dd>
- The observed data. It has to be in the long format as described in
- <code>modFit</code>, i.e. the first column called &quot;name&quot; must contain the
+ <code>observed</code>.</p></td>
+ </tr>
+ <tr>
+ <th>observed</th>
+ <td><p>The observed data. It has to be in the long format as described in
+ <code>modFit</code>, i.e. the first column called "name" must contain the
name of the observed variable for each data point. The second column must
- contain the times of observation, named &quot;time&quot;. The third column must be
- named &quot;value&quot; and contain the observed values. Optionally, a further column
+ contain the times of observation, named "time". The third column must be
+ named "value" and contain the observed values. Optionally, a further column
can contain weights for each data point. Its name must be passed as a
further argument named <code>err</code> which is then passed on to
- <code>modFit</code>.
- </dd>
- <dt>parms.ini</dt>
- <dd>
- A named vector of initial values for the parameters, including parameters
+ <code>modFit</code>.</p></td>
+ </tr>
+ <tr>
+ <th>parms.ini</th>
+ <td><p>A named vector of initial values for the parameters, including parameters
to be optimised and potentially also fixed parameters as indicated by
- <code>fixed_parms</code>. If set to &quot;auto&quot;, initial values for rate constants
+ <code>fixed_parms</code>. If set to "auto", initial values for rate constants
are set to default values. Using parameter names that are not in the model
- gives an error.
-
- It is possible to only specify a subset of the parameters that the model
- needs. You can use the parameter lists &quot;bparms.ode&quot; from a previously
+ gives an error.</p>
+<p>It is possible to only specify a subset of the parameters that the model
+ needs. You can use the parameter lists "bparms.ode" from a previously
fitted model, which contains the differential equation parameters from this
model. This works nicely if the models are nested. An example is given
- below.
- </dd>
- <dt>state.ini</dt>
- <dd>
- A named vector of initial values for the state variables of the model. In
+ below.</p></td>
+ </tr>
+ <tr>
+ <th>state.ini</th>
+ <td><p>A named vector of initial values for the state variables of the model. In
case the observed variables are represented by more than one model
variable, the names will differ from the names of the observed variables
(see <code>map</code> component of <code><a href='mkinmod.html'>mkinmod</a></code>). The default is to set
the initial value of the first model variable to the mean of the time zero
values for the variable with the maximum observed value, and all others to 0.
- If this variable has no time zero observations, its initial value is set to 100.
- </dd>
- <dt>fixed_parms</dt>
- <dd>
- The names of parameters that should not be optimised but rather kept at the
- values specified in <code>parms.ini</code>.
- </dd>
- <dt>fixed_initials</dt>
- <dd>
- The names of model variables for which the initial state at time 0 should
+ If this variable has no time zero observations, its initial value is set to 100.</p></td>
+ </tr>
+ <tr>
+ <th>fixed_parms</th>
+ <td><p>The names of parameters that should not be optimised but rather kept at the
+ values specified in <code>parms.ini</code>.</p></td>
+ </tr>
+ <tr>
+ <th>fixed_initials</th>
+ <td><p>The names of model variables for which the initial state at time 0 should
be excluded from the optimisation. Defaults to all state variables except
- for the first one.
- </dd>
- <dt>from_max_mean</dt>
- <dd>
- If this is set to TRUE, and the model has only one observed variable, then
+ for the first one.</p></td>
+ </tr>
+ <tr>
+ <th>from_max_mean</th>
+ <td><p>If this is set to TRUE, and the model has only one observed variable, then
data before the time of the maximum observed value (after averaging for each
sampling time) are discarded, and this time is subtracted from all
remaining time values, so the time of the maximum observed mean value is
- the new time zero.
- </dd>
- <dt>solution_type</dt>
- <dd>
- If set to &quot;eigen&quot;, the solution of the system of differential equations is
+ the new time zero.</p></td>
+ </tr>
+ <tr>
+ <th>solution_type</th>
+ <td><p>If set to "eigen", the solution of the system of differential equations is
based on the spectral decomposition of the coefficient matrix in cases that
- this is possible. If set to &quot;deSolve&quot;, a numerical ode solver from package
- <code>deSolve</code> is used. If set to &quot;analytical&quot;, an analytical
+ this is possible. If set to "deSolve", a numerical ode solver from package
+ <code>deSolve</code> is used. If set to "analytical", an analytical
solution of the model is used. This is only implemented for simple
degradation experiments with only one state variable, i.e. with no
- metabolites. The default is &quot;auto&quot;, which uses &quot;analytical&quot; if possible,
- otherwise &quot;eigen&quot; if the model can be expressed using eigenvalues and
- eigenvectors, and finally &quot;deSolve&quot; for the remaining models (time
+ metabolites. The default is "auto", which uses "analytical" if possible,
+ otherwise "eigen" if the model can be expressed using eigenvalues and
+ eigenvectors, and finally "deSolve" for the remaining models (time
dependence of degradation rates and metabolites). This argument is passed
- on to the helper function <code><a href='mkinpredict.html'>mkinpredict</a></code>.
- </dd>
- <dt>method.ode</dt>
- <dd>
- The solution method passed via <code><a href='mkinpredict.html'>mkinpredict</a></code> to
- <code>ode</code> in case the solution type is &quot;deSolve&quot;. The default
- &quot;lsoda&quot; is performant, but sometimes fails to converge.
- </dd>
- <dt>use_compiled</dt>
- <dd>
- If set to <code>FALSE</code>, no compiled version of the <code><a href='mkinmod.html'>mkinmod</a></code>
+ on to the helper function <code><a href='mkinpredict.html'>mkinpredict</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>method.ode</th>
+ <td><p>The solution method passed via <code><a href='mkinpredict.html'>mkinpredict</a></code> to
+ <code>ode</code> in case the solution type is "deSolve". The default
+ "lsoda" is performant, but sometimes fails to converge.</p></td>
+ </tr>
+ <tr>
+ <th>use_compiled</th>
+ <td><p>If set to <code>FALSE</code>, no compiled version of the <code><a href='mkinmod.html'>mkinmod</a></code>
model is used, in the calls to <code><a href='mkinpredict.html'>mkinpredict</a></code> even if
- a compiled verion is present.
- </dd>
- <dt>method.modFit</dt>
- <dd>
- The optimisation method passed to <code>modFit</code>.
-
- In order to optimally deal with problems where local minima occur, the
- &quot;Port&quot; algorithm is now used per default as it is less prone to get trapped
+ a compiled verion is present.</p></td>
+ </tr>
+ <tr>
+ <th>method.modFit</th>
+ <td><p>The optimisation method passed to <code>modFit</code>.</p>
+<p>In order to optimally deal with problems where local minima occur, the
+ "Port" algorithm is now used per default as it is less prone to get trapped
in local minima and depends less on starting values for parameters than
- the Levenberg Marquardt variant selected by &quot;Marq&quot;. However, &quot;Port&quot; needs
- more iterations.
-
- The former default &quot;Marq&quot; is the Levenberg Marquardt algorithm
+ the Levenberg Marquardt variant selected by "Marq". However, "Port" needs
+ more iterations.</p>
+<p>The former default "Marq" is the Levenberg Marquardt algorithm
<code>nls.lm</code> from the package <code>minpack.lm</code> and usually needs
- the least number of iterations.
-
- The &quot;Pseudo&quot; algorithm is not included because it needs finite parameter bounds
- which are currently not supported.
-
- The &quot;Newton&quot; algorithm is not included because its number of iterations
+ the least number of iterations.</p>
+<p>The "Pseudo" algorithm is not included because it needs finite parameter bounds
+ which are currently not supported.</p>
+<p>The "Newton" algorithm is not included because its number of iterations
can not be controlled by <code>control.modFit</code> and it does not appear
- to provide advantages over the other algorithms.
- </dd>
- <dt>maxit.modFit</dt>
- <dd>
- Maximum number of iterations in the optimisation. If not &quot;auto&quot;, this will
+ to provide advantages over the other algorithms.</p></td>
+ </tr>
+ <tr>
+ <th>maxit.modFit</th>
+ <td><p>Maximum number of iterations in the optimisation. If not "auto", this will
be passed to the method called by <code>modFit</code>, overriding
- what may be specified in the next argument <code>control.modFit</code>.
- </dd>
- <dt>control.modFit</dt>
- <dd>
- Additional arguments passed to the optimisation method used by
- <code>modFit</code>.
- </dd>
- <dt>transform_rates</dt>
- <dd>
- Boolean specifying if kinetic rate constants should be transformed in the
+ what may be specified in the next argument <code>control.modFit</code>.</p></td>
+ </tr>
+ <tr>
+ <th>control.modFit</th>
+ <td><p>Additional arguments passed to the optimisation method used by
+ <code>modFit</code>.</p></td>
+ </tr>
+ <tr>
+ <th>transform_rates</th>
+ <td><p>Boolean specifying if kinetic rate constants should be transformed in the
model specification used in the fitting for better compliance with the
assumption of normal distribution of the estimator. If TRUE, also
alpha and beta parameters of the FOMC model are log-transformed, as well
as k1 and k2 rate constants for the DFOP and HS models and the break point
tb of the HS model.
- If FALSE, zero is used as a lower bound for the rates in the optimisation.
- </dd>
- <dt>transform_fractions</dt>
- <dd>
- Boolean specifying if formation fractions constants should be transformed in the
+ If FALSE, zero is used as a lower bound for the rates in the optimisation.</p></td>
+ </tr>
+ <tr>
+ <th>transform_fractions</th>
+ <td><p>Boolean specifying if formation fractions constants should be transformed in the
model specification used in the fitting for better compliance with the
assumption of normal distribution of the estimator. The default (TRUE) is
to do transformations. If TRUE, the g parameter of the DFOP and HS
models are also transformed, as they can also be seen as compositional
data. The transformation used for these transformations is the
- <code><a href='ilr.html'>ilr</a></code> transformation.
- </dd>
- <dt>plot</dt>
- <dd>
- Should the observed values and the numerical solutions be plotted at each
- stage of the optimisation?
- </dd>
- <dt>quiet</dt>
- <dd>
- Suppress printing out the current model cost after each improvement?
- </dd>
- <dt>err </dt>
- <dd>either <code>NULL</code>, or the name of the column with the
+ <code><a href='ilr.html'>ilr</a></code> transformation.</p></td>
+ </tr>
+ <tr>
+ <th>plot</th>
+ <td><p>Should the observed values and the numerical solutions be plotted at each
+ stage of the optimisation?</p></td>
+ </tr>
+ <tr>
+ <th>quiet</th>
+ <td><p>Suppress printing out the current model cost after each improvement?</p></td>
+ </tr>
+ <tr>
+ <th>err </th>
+ <td><p>either <code>NULL</code>, or the name of the column with the
<em>error</em> estimates, used to weigh the residuals (see details of
- <code>modCost</code>); if <code>NULL</code>, then the residuals are not weighed.
- </dd>
- <dt>weight</dt>
- <dd>
- only if <code>err</code>=<code>NULL</code>: how to weight the residuals, one of &quot;none&quot;,
- &quot;std&quot;, &quot;mean&quot;, see details of <code>modCost</code>.
- </dd>
- <dt>scaleVar</dt>
- <dd>
- Will be passed to <code>modCost</code>. Default is not to scale Variables
- according to the number of observations.
- </dd>
- <dt>atol</dt>
- <dd>
- Absolute error tolerance, passed to <code>ode</code>. Default is 1e-8,
- lower than in <code>lsoda</code>.
- </dd>
- <dt>rtol</dt>
- <dd>
- Absolute error tolerance, passed to <code>ode</code>. Default is 1e-10,
- much lower than in <code>lsoda</code>.
- </dd>
- <dt>n.outtimes</dt>
- <dd>
- The length of the dataseries that is produced by the model prediction
+ <code>modCost</code>); if <code>NULL</code>, then the residuals are not weighed.</p></td>
+ </tr>
+ <tr>
+ <th>weight</th>
+ <td><p>only if <code>err</code>=<code>NULL</code>: how to weight the residuals, one of "none",
+ "std", "mean", see details of <code>modCost</code>.</p></td>
+ </tr>
+ <tr>
+ <th>scaleVar</th>
+ <td><p>Will be passed to <code>modCost</code>. Default is not to scale Variables
+ according to the number of observations.</p></td>
+ </tr>
+ <tr>
+ <th>atol</th>
+ <td><p>Absolute error tolerance, passed to <code>ode</code>. Default is 1e-8,
+ lower than in <code>lsoda</code>.</p></td>
+ </tr>
+ <tr>
+ <th>rtol</th>
+ <td><p>Absolute error tolerance, passed to <code>ode</code>. Default is 1e-10,
+ much lower than in <code>lsoda</code>.</p></td>
+ </tr>
+ <tr>
+ <th>n.outtimes</th>
+ <td><p>The length of the dataseries that is produced by the model prediction
function <code><a href='mkinpredict.html'>mkinpredict</a></code>. This impacts the accuracy of
the numerical solver if that is used (see <code>solution_type</code> argument.
- The default value is 100.
- </dd>
- <dt>reweight.method</dt>
- <dd>
- The method used for iteratively reweighting residuals, also known
+ The default value is 100.</p></td>
+ </tr>
+ <tr>
+ <th>reweight.method</th>
+ <td><p>The method used for iteratively reweighting residuals, also known
as iteratively reweighted least squares (IRLS). Default is NULL,
- the other method implemented is called &quot;obs&quot;, meaning that each
+ the other method implemented is called "obs", meaning that each
observed variable is assumed to have its own variance, this is
estimated from the fit and used for weighting the residuals
in each iteration until convergence of this estimate up to
<code>reweight.tol</code> or up to the maximum number of iterations
- specified by <code>reweight.max.iter</code>.
- </dd>
- <dt>reweight.tol</dt>
- <dd>
- Tolerance for convergence criterion for the variance components
- in IRLS fits.
- </dd>
- <dt>reweight.max.iter</dt>
- <dd>
- Maximum iterations in IRLS fits.
- </dd>
- <dt>trace_parms</dt>
- <dd>
- Should a trace of the parameter values be listed?
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Further arguments that will be passed to <code>modFit</code>.
- </dd>
- </dl>
+ specified by <code>reweight.max.iter</code>.</p></td>
+ </tr>
+ <tr>
+ <th>reweight.tol</th>
+ <td><p>Tolerance for convergence criterion for the variance components
+ in IRLS fits.</p></td>
+ </tr>
+ <tr>
+ <th>reweight.max.iter</th>
+ <td><p>Maximum iterations in IRLS fits.</p></td>
+ </tr>
+ <tr>
+ <th>trace_parms</th>
+ <td><p>Should a trace of the parameter values be listed?</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Further arguments that will be passed to <code>modFit</code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
- <p>A list with &quot;mkinfit&quot; and &quot;modFit&quot; in the class attribute.
+ <p>A list with "mkinfit" and "modFit" in the class attribute.
A summary can be obtained by <code><a href='summary.mkinfit.html'>summary.mkinfit</a></code>.</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<p>Plotting methods <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code> and
<code><a href='mkinparplot.html'>mkinparplot</a></code>.</p>
- <p>Fitting of several models to several datasets in a single call to
+<p>Fitting of several models to several datasets in a single call to
<code><a href='mmkin.html'>mmkin</a></code>.</p>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
@@ -368,8 +368,8 @@
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
- <p>When using the &quot;IORE&quot; submodel for metabolites, fitting with
- &quot;transform_rates = TRUE&quot; (the default) often leads to failures of the
+ <p>When using the "IORE" submodel for metabolites, fitting with
+ "transform_rates = TRUE" (the default) often leads to failures of the
numerical ODE solver. In this situation it may help to switch off the
internal rate transformation.</p>
@@ -377,17 +377,17 @@
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='co'># Use shorthand notation for parent only degradation</span>
<span class='no'>fit</span> <span class='kw'>&lt;-</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'>summary</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:44:56 2017
-#&gt; Date of summary: Wed Mar 15 09:44:56 2017
+<span class='fu'>summary</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:06 2017
+#&gt; Date of summary: Fri May 5 12:45:06 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - (alpha/beta) * 1/((time/beta) + 1) * parent
#&gt;
#&gt; Model predictions using solution type analytical
#&gt;
-#&gt; Fitted with method Port using 64 model solutions performed in 0.146 s
+#&gt; Fitted with method Port using 64 model solutions performed in 0.206 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -456,7 +456,7 @@
<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'>#&gt; <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'>print</span>(<span class='fu'>system.time</span>(<span class='no'>fit</span> <span class='kw'>&lt;-</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'>#&gt; user system elapsed
-#&gt; 1.216 1.268 0.942 </div><div class='input'><span class='fu'>coef</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; parent_0 log_k_parent_sink log_k_parent_m1 log_k_m1_sink
+#&gt; 0.912 0.000 0.915 </div><div class='input'><span class='fu'>coef</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; parent_0 log_k_parent_sink log_k_parent_m1 log_k_m1_sink
#&gt; 99.59848 -3.03822 -2.98030 -5.24750 </div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; $ff
#&gt; parent_sink parent_m1 m1_sink
#&gt; 0.485524 0.514476 1.000000
@@ -485,13 +485,13 @@
#&gt; Model cost at call 33 : 874.2611
#&gt; Model cost at call 35 : 616.2379
#&gt; Model cost at call 37 : 616.2374
-#&gt; Model cost at call 40 : 467.4388
+#&gt; Model cost at call 40 : 467.4387
#&gt; Model cost at call 42 : 467.4382
-#&gt; Model cost at call 46 : 398.2914
-#&gt; Model cost at call 48 : 398.2914
-#&gt; Model cost at call 49 : 398.2913
-#&gt; Model cost at call 51 : 395.0712
-#&gt; Model cost at call 54 : 395.0711
+#&gt; Model cost at call 46 : 398.2913
+#&gt; Model cost at call 48 : 398.2912
+#&gt; Model cost at call 49 : 398.2911
+#&gt; Model cost at call 51 : 395.0711
+#&gt; Model cost at call 54 : 395.071
#&gt; Model cost at call 56 : 378.3298
#&gt; Model cost at call 59 : 378.3298
#&gt; Model cost at call 62 : 376.9812
@@ -514,9 +514,9 @@
#&gt; Model cost at call 94 : 371.6464
#&gt; Model cost at call 99 : 371.4299
#&gt; Model cost at call 101 : 371.4299
-#&gt; Model cost at call 104 : 371.407
-#&gt; Model cost at call 106 : 371.407
-#&gt; Model cost at call 107 : 371.407
+#&gt; Model cost at call 104 : 371.4071
+#&gt; Model cost at call 106 : 371.4071
+#&gt; Model cost at call 107 : 371.4071
#&gt; Model cost at call 109 : 371.2524
#&gt; Model cost at call 113 : 371.2524
#&gt; Model cost at call 114 : 371.2136
@@ -530,10 +530,12 @@
#&gt; Model cost at call 126 : 371.2134
#&gt; Model cost at call 135 : 371.2134
#&gt; Model cost at call 147 : 371.2134
+#&gt; Model cost at call 151 : 371.2134
#&gt; Model cost at call 152 : 371.2134
+#&gt; Model cost at call 153 : 371.2134
#&gt; Optimisation by method Port successfully terminated.
#&gt; user system elapsed
-#&gt; 0.712 0.040 0.703 </div><div class='input'><span class='fu'>coef</span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; parent_0 log_k_parent_sink log_k_parent_m1 log_k_m1_sink
+#&gt; 0.792 0.000 0.793 </div><div class='input'><span class='fu'>coef</span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; parent_0 log_k_parent_sink log_k_parent_m1 log_k_m1_sink
#&gt; 99.59848 -3.03822 -2.98030 -5.24750 </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'>#&gt; $ff
#&gt; parent_sink parent_m1 m1_sink
#&gt; 0.485524 0.514476 1.000000
@@ -544,7 +546,7 @@
#&gt; $distimes
#&gt; DT50 DT90
#&gt; parent 7.022929 23.32967
-#&gt; m1 131.760713 437.69961
+#&gt; m1 131.760712 437.69961
#&gt; </div><div class='input'>
<span class='co'># Use stepwise fitting, using optimised parameters from parent only fit, FOMC</span>
@@ -574,10 +576,10 @@
<span class='co'># Weighted fits, including IRLS</span>
<span class='no'>SFO_SFO.ff</span> <span class='kw'>&lt;-</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'>#&gt; <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'>&lt;-</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>)
-<span class='fu'>summary</span>(<span class='no'>f.noweight</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:07 2017
-#&gt; Date of summary: Wed Mar 15 09:45:07 2017
+<span class='fu'>summary</span>(<span class='no'>f.noweight</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:17 2017
+#&gt; Date of summary: Fri May 5 12:45:17 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -585,7 +587,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 185 model solutions performed in 0.753 s
+#&gt; Fitted with method Port using 185 model solutions performed in 0.746 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -695,10 +697,10 @@
#&gt; 100 m1 33.13 3.198e+01 1.148e+00
#&gt; 120 m1 25.15 2.879e+01 -3.640e+00
#&gt; 120 m1 33.31 2.879e+01 4.520e+00</div><div class='input'><span class='no'>f.irls</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>reweight.method</span> <span class='kw'>=</span> <span class='st'>"obs"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>f.irls</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:09 2017
-#&gt; Date of summary: Wed Mar 15 09:45:09 2017
+<span class='fu'>summary</span>(<span class='no'>f.irls</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:19 2017
+#&gt; Date of summary: Fri May 5 12:45:19 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -706,7 +708,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 486 model solutions performed in 2.091 s
+#&gt; Fitted with method Port using 468 model solutions performed in 1.925 s
#&gt;
#&gt; Weighting: none then iterative reweighting method obs
#&gt;
@@ -731,16 +733,16 @@
#&gt; Optimised, transformed parameters with symmetric confidence intervals:
#&gt; Estimate Std. Error Lower Upper
#&gt; parent_0 99.67000 1.79200 96.04000 103.300
-#&gt; log_k_parent -2.31200 0.04560 -2.40400 -2.220
+#&gt; log_k_parent -2.31200 0.04560 -2.40400 -2.219
#&gt; log_k_m1 -5.25100 0.12510 -5.50500 -4.998
#&gt; f_parent_ilr_1 0.03785 0.06318 -0.09027 0.166
#&gt;
#&gt; Parameter correlation:
#&gt; parent_0 log_k_parent log_k_m1 f_parent_ilr_1
-#&gt; parent_0 1.0000 0.5083 -0.1979 -0.6148
+#&gt; parent_0 1.0000 0.5083 -0.1979 -0.6147
#&gt; log_k_parent 0.5083 1.0000 -0.3894 -0.6062
#&gt; log_k_m1 -0.1979 -0.3894 1.0000 0.7417
-#&gt; f_parent_ilr_1 -0.6148 -0.6062 0.7417 1.0000
+#&gt; f_parent_ilr_1 -0.6147 -0.6062 0.7417 1.0000
#&gt;
#&gt; Residual standard error: 1.054 on 36 degrees of freedom
#&gt;
@@ -749,10 +751,10 @@
#&gt; t-test (unrealistically) based on the assumption of normal distribution
#&gt; for estimators of untransformed parameters.
#&gt; Estimate t value Pr(&gt;t) Lower Upper
-#&gt; parent_0 99.67000 55.630 8.183e-37 96.040000 1.033e+02
+#&gt; parent_0 99.67000 55.630 8.181e-37 96.040000 1.033e+02
#&gt; k_parent 0.09906 21.930 1.016e-22 0.090310 1.087e-01
#&gt; k_m1 0.00524 7.996 8.487e-10 0.004066 6.753e-03
-#&gt; f_parent_to_m1 0.51340 23.000 2.039e-23 0.468100 5.584e-01
+#&gt; f_parent_to_m1 0.51340 23.000 2.038e-23 0.468100 5.584e-01
#&gt;
#&gt; Chi2 error levels in percent:
#&gt; err.min n.optim df
@@ -782,14 +784,14 @@
#&gt; 7 parent 55.13 4.982e+01 5.309e+00 3.402
#&gt; 14 parent 27.27 2.490e+01 2.367e+00 3.402
#&gt; 14 parent 26.64 2.490e+01 1.737e+00 3.402
-#&gt; 21 parent 11.50 1.245e+01 -9.477e-01 3.402
-#&gt; 21 parent 11.64 1.245e+01 -8.077e-01 3.402
+#&gt; 21 parent 11.50 1.245e+01 -9.476e-01 3.402
+#&gt; 21 parent 11.64 1.245e+01 -8.076e-01 3.402
#&gt; 35 parent 2.85 3.110e+00 -2.600e-01 3.402
#&gt; 35 parent 2.91 3.110e+00 -2.000e-01 3.402
-#&gt; 50 parent 0.69 7.037e-01 -1.375e-02 3.402
-#&gt; 50 parent 0.63 7.037e-01 -7.375e-02 3.402
-#&gt; 75 parent 0.05 5.913e-02 -9.134e-03 3.402
-#&gt; 75 parent 0.06 5.913e-02 8.661e-04 3.402
+#&gt; 50 parent 0.69 7.037e-01 -1.374e-02 3.402
+#&gt; 50 parent 0.63 7.037e-01 -7.374e-02 3.402
+#&gt; 75 parent 0.05 5.913e-02 -9.133e-03 3.402
+#&gt; 75 parent 0.06 5.913e-02 8.666e-04 3.402
#&gt; 100 parent NA 4.969e-03 NA 3.402
#&gt; 100 parent NA 4.969e-03 NA 3.402
#&gt; 120 parent NA 6.852e-04 NA 3.402
@@ -801,14 +803,14 @@
#&gt; 3 m1 12.91 1.305e+01 -1.378e-01 2.722
#&gt; 3 m1 12.96 1.305e+01 -8.779e-02 2.722
#&gt; 7 m1 22.97 2.508e+01 -2.106e+00 2.722
-#&gt; 7 m1 24.47 2.508e+01 -6.061e-01 2.722
+#&gt; 7 m1 24.47 2.508e+01 -6.062e-01 2.722
#&gt; 14 m1 41.69 3.671e+01 4.983e+00 2.722
#&gt; 14 m1 33.21 3.671e+01 -3.497e+00 2.722
-#&gt; 21 m1 44.37 4.165e+01 2.719e+00 2.722
-#&gt; 21 m1 46.44 4.165e+01 4.789e+00 2.722
+#&gt; 21 m1 44.37 4.165e+01 2.720e+00 2.722
+#&gt; 21 m1 46.44 4.165e+01 4.790e+00 2.722
#&gt; 35 m1 41.22 4.329e+01 -2.069e+00 2.722
#&gt; 35 m1 37.95 4.329e+01 -5.339e+00 2.722
-#&gt; 50 m1 41.19 4.119e+01 -3.388e-03 2.722
+#&gt; 50 m1 41.19 4.119e+01 -3.376e-03 2.722
#&gt; 50 m1 40.01 4.119e+01 -1.183e+00 2.722
#&gt; 75 m1 40.09 3.644e+01 3.652e+00 2.722
#&gt; 75 m1 33.85 3.644e+01 -2.588e+00 2.722
@@ -816,10 +818,10 @@
#&gt; 100 m1 33.13 3.199e+01 1.140e+00 2.722
#&gt; 120 m1 25.15 2.881e+01 -3.659e+00 2.722
#&gt; 120 m1 33.31 2.881e+01 4.501e+00 2.722</div><div class='input'><span class='no'>f.w.mean</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>weight</span> <span class='kw'>=</span> <span class='st'>"mean"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>f.w.mean</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:10 2017
-#&gt; Date of summary: Wed Mar 15 09:45:10 2017
+<span class='fu'>summary</span>(<span class='no'>f.w.mean</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:20 2017
+#&gt; Date of summary: Fri May 5 12:45:20 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -827,7 +829,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 155 model solutions performed in 0.661 s
+#&gt; Fitted with method Port using 155 model solutions performed in 0.699 s
#&gt;
#&gt; Weighting: mean
#&gt;
@@ -871,7 +873,7 @@
#&gt; for estimators of untransformed parameters.
#&gt; Estimate t value Pr(&gt;t) Lower Upper
#&gt; parent_0 99.730000 51.630 1.166e-35 95.81000 1.036e+02
-#&gt; k_parent 0.099360 20.670 7.304e-22 0.09007 1.096e-01
+#&gt; k_parent 0.099360 20.670 7.303e-22 0.09007 1.096e-01
#&gt; k_m1 0.005224 8.287 3.649e-10 0.00409 6.672e-03
#&gt; f_parent_to_m1 0.512500 22.860 2.497e-23 0.46710 5.578e-01
#&gt;
@@ -938,10 +940,10 @@
#&gt; 120 m1 25.15 28.824128 -3.674128
#&gt; 120 m1 33.31 28.824128 4.485872</div><div class='input'><span class='no'>f.w.value</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='fu'>subset</span>(<span class='no'>FOCUS_2006_D</span>, <span class='no'>value</span> <span class='kw'>!=</span> <span class='fl'>0</span>), <span class='kw'>err</span> <span class='kw'>=</span> <span class='st'>"value"</span>,
<span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>f.w.value</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:11 2017
-#&gt; Date of summary: Wed Mar 15 09:45:11 2017
+<span class='fu'>summary</span>(<span class='no'>f.w.value</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:21 2017
+#&gt; Date of summary: Fri May 5 12:45:21 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -949,7 +951,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 174 model solutions performed in 0.724 s
+#&gt; Fitted with method Port using 174 model solutions performed in 0.767 s
#&gt;
#&gt; Weighting: manual
#&gt;
@@ -1060,10 +1062,10 @@
<span class='no'>errors</span> <span class='kw'>&lt;-</span> <span class='fu'>c</span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>2</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>1</span>)
<span class='no'>dw</span>$<span class='no'>err.man</span> <span class='kw'>&lt;-</span> <span class='no'>errors</span>[<span class='no'>FOCUS_2006_D</span>$<span class='no'>name</span>]
<span class='no'>f.w.man</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>dw</span>, <span class='kw'>err</span> <span class='kw'>=</span> <span class='st'>"err.man"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>f.w.man</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:12 2017
-#&gt; Date of summary: Wed Mar 15 09:45:12 2017
+<span class='fu'>summary</span>(<span class='no'>f.w.man</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:22 2017
+#&gt; Date of summary: Fri May 5 12:45:22 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -1071,7 +1073,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 316 model solutions performed in 1.31 s
+#&gt; Fitted with method Port using 297 model solutions performed in 1.276 s
#&gt;
#&gt; Weighting: manual
#&gt;
@@ -1102,10 +1104,10 @@
#&gt;
#&gt; Parameter correlation:
#&gt; parent_0 log_k_parent log_k_m1 f_parent_ilr_1
-#&gt; parent_0 1.00000 0.5312 -0.09455 -0.3351
+#&gt; parent_0 1.00000 0.5312 -0.09456 -0.3351
#&gt; log_k_parent 0.53123 1.0000 -0.17800 -0.3360
-#&gt; log_k_m1 -0.09455 -0.1780 1.00000 0.7616
-#&gt; f_parent_ilr_1 -0.33513 -0.3360 0.76156 1.0000
+#&gt; log_k_m1 -0.09456 -0.1780 1.00000 0.7616
+#&gt; f_parent_ilr_1 -0.33514 -0.3360 0.76156 1.0000
#&gt;
#&gt; Residual standard error: 2.628 on 36 degrees of freedom
#&gt;
@@ -1114,7 +1116,7 @@
#&gt; t-test (unrealistically) based on the assumption of normal distribution
#&gt; for estimators of untransformed parameters.
#&gt; Estimate t value Pr(&gt;t) Lower Upper
-#&gt; parent_0 99.490000 74.69 2.222e-41 96.780000 1.022e+02
+#&gt; parent_0 99.490000 74.69 2.221e-41 96.780000 1.022e+02
#&gt; k_parent 0.098140 28.17 2.012e-26 0.091320 1.055e-01
#&gt; k_m1 0.005292 4.70 1.873e-05 0.003437 8.148e-03
#&gt; f_parent_to_m1 0.516200 16.30 1.686e-18 0.452000 5.798e-01
@@ -1137,10 +1139,10 @@
#&gt;
#&gt; Data:
#&gt; time variable observed predicted residual err
-#&gt; 0 parent 99.46 99.485977 -0.025977 1
-#&gt; 0 parent 102.04 99.485977 2.554023 1
-#&gt; 1 parent 93.50 90.186118 3.313882 1
-#&gt; 1 parent 92.50 90.186118 2.313882 1
+#&gt; 0 parent 99.46 99.485976 -0.025976 1
+#&gt; 0 parent 102.04 99.485976 2.554024 1
+#&gt; 1 parent 93.50 90.186117 3.313883 1
+#&gt; 1 parent 92.50 90.186117 2.313883 1
#&gt; 3 parent 63.23 74.113162 -10.883162 1
#&gt; 3 parent 68.99 74.113162 -5.123162 1
#&gt; 7 parent 52.32 50.050295 2.269705 1
@@ -1169,23 +1171,23 @@
#&gt; 7 m1 24.47 24.996945 -0.526945 2
#&gt; 14 m1 41.69 36.663527 5.026473 2
#&gt; 14 m1 33.21 36.663527 -3.453527 2
-#&gt; 21 m1 44.37 41.656812 2.713188 2
-#&gt; 21 m1 46.44 41.656812 4.783188 2
-#&gt; 35 m1 41.22 43.350311 -2.130311 2
-#&gt; 35 m1 37.95 43.350311 -5.400311 2
-#&gt; 50 m1 41.19 41.256364 -0.066364 2
-#&gt; 50 m1 40.01 41.256364 -1.246364 2
-#&gt; 75 m1 40.09 36.460566 3.629434 2
-#&gt; 75 m1 33.85 36.460566 -2.610566 2
+#&gt; 21 m1 44.37 41.656813 2.713187 2
+#&gt; 21 m1 46.44 41.656813 4.783187 2
+#&gt; 35 m1 41.22 43.350312 -2.130312 2
+#&gt; 35 m1 37.95 43.350312 -5.400312 2
+#&gt; 50 m1 41.19 41.256365 -0.066365 2
+#&gt; 50 m1 40.01 41.256365 -1.246365 2
+#&gt; 75 m1 40.09 36.460567 3.629433 2
+#&gt; 75 m1 33.85 36.460567 -2.610567 2
#&gt; 100 m1 31.04 31.969288 -0.929288 2
#&gt; 100 m1 33.13 31.969288 1.160712 2
-#&gt; 120 m1 25.15 28.760615 -3.610615 2
-#&gt; 120 m1 33.31 28.760615 4.549385 2</div><div class='input'><span class='no'>f.w.man.irls</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>dw</span>, <span class='kw'>err</span> <span class='kw'>=</span> <span class='st'>"err.man"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
+#&gt; 120 m1 25.15 28.760616 -3.610616 2
+#&gt; 120 m1 33.31 28.760616 4.549384 2</div><div class='input'><span class='no'>f.w.man.irls</span> <span class='kw'>&lt;-</span> <span class='fu'>mkinfit</span>(<span class='no'>SFO_SFO.ff</span>, <span class='no'>dw</span>, <span class='kw'>err</span> <span class='kw'>=</span> <span class='st'>"err.man"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>reweight.method</span> <span class='kw'>=</span> <span class='st'>"obs"</span>)
-<span class='fu'>summary</span>(<span class='no'>f.w.man.irls</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.1
-#&gt; R version: 3.3.3
-#&gt; Date of fit: Wed Mar 15 09:45:15 2017
-#&gt; Date of summary: Wed Mar 15 09:45:15 2017
+<span class='fu'>summary</span>(<span class='no'>f.w.man.irls</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:45:25 2017
+#&gt; Date of summary: Fri May 5 12:45:25 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -1193,7 +1195,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 648 model solutions performed in 2.766 s
+#&gt; Fitted with method Port using 628 model solutions performed in 2.626 s
#&gt;
#&gt; Weighting: manual then iterative reweighting method obs
#&gt;
@@ -1236,10 +1238,10 @@
#&gt; t-test (unrealistically) based on the assumption of normal distribution
#&gt; for estimators of untransformed parameters.
#&gt; Estimate t value Pr(&gt;t) Lower Upper
-#&gt; parent_0 99.67000 55.630 8.178e-37 96.040000 1.033e+02
+#&gt; parent_0 99.67000 55.630 8.179e-37 96.040000 1.033e+02
#&gt; k_parent 0.09906 21.930 1.015e-22 0.090310 1.087e-01
#&gt; k_m1 0.00524 7.996 8.488e-10 0.004066 6.753e-03
-#&gt; f_parent_to_m1 0.51340 23.000 2.038e-23 0.468100 5.584e-01
+#&gt; f_parent_to_m1 0.51340 23.000 2.039e-23 0.468100 5.584e-01
#&gt;
#&gt; Chi2 error levels in percent:
#&gt; err.min n.optim df
diff --git a/docs/reference/mkinmod.html b/docs/reference/mkinmod.html
index 1343abcc..de9815d4 100644
--- a/docs/reference/mkinmod.html
+++ b/docs/reference/mkinmod.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinmod • mkin</title>
+<title>Function to set up a kinetic model with one or more state variables — mkinmod • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to set up a kinetic model with one or more state variables</h1>
</div>
@@ -105,58 +108,67 @@
a list, specifying the kinetic model type and reaction or transfer to other
observed compartments. Instead of specifying several expressions, a list
of lists can be given in the speclist argument.</p>
-
- <p>For the definition of model types and their parameters, the equations given
+<p>For the definition of model types and their parameters, the equations given
in the FOCUS and NAFTA guidance documents are used.</p>
- <pre><span class='fu'>mkinmod</span>(<span class='no'>...</span>, <span class='kw'>use_of_ff</span> <span class='kw'>=</span> <span class='st'>"min"</span>, <span class='kw'>speclist</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='kw'>verbose</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</pre>
+ <pre class="usage"><span class='fu'>mkinmod</span>(<span class='no'>...</span>, <span class='kw'>use_of_ff</span> <span class='kw'>=</span> <span class='st'>"min"</span>, <span class='kw'>speclist</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='kw'>verbose</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>...</dt>
- <dd>
- For each observed variable, a list has to be specified as an argument, containing
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>...</th>
+ <td><p>For each observed variable, a list has to be specified as an argument, containing
at least a component <code>type</code>, specifying the type of kinetics to use
- for the variable. Currently, single first order kinetics &quot;SFO&quot;,
- indeterminate order rate equation kinetics &quot;IORE&quot;, or
- single first order with reversible binding &quot;SFORB&quot; are implemented for all
+ for the variable. Currently, single first order kinetics "SFO",
+ indeterminate order rate equation kinetics "IORE", or
+ single first order with reversible binding "SFORB" are implemented for all
variables, while
- &quot;FOMC&quot;, &quot;DFOP&quot; and &quot;HS&quot; can additionally be chosen for the first
+ "FOMC", "DFOP" and "HS" can additionally be chosen for the first
variable which is assumed to be the source compartment.
Additionally, each component of the list can include a character vector <code>to</code>,
specifying names of variables to which a transfer is to be assumed in the
model.
- If the argument <code>use_of_ff</code> is set to &quot;min&quot; (default) and the model for
- the compartment is &quot;SFO&quot; or &quot;SFORB&quot;, an additional component of the list
- can be &quot;sink=FALSE&quot; effectively fixing the flux to sink to zero.
- </dd>
- <dt>use_of_ff</dt>
- <dd>
- Specification of the use of formation fractions in the model equations and, if
- applicable, the coefficient matrix. If &quot;min&quot;, a minimum use of formation
+ If the argument <code>use_of_ff</code> is set to "min" (default) and the model for
+ the compartment is "SFO" or "SFORB", an additional component of the list
+ can be "sink=FALSE" effectively fixing the flux to sink to zero.</p></td>
+ </tr>
+ <tr>
+ <th>use_of_ff</th>
+ <td><p>Specification of the use of formation fractions in the model equations and, if
+ applicable, the coefficient matrix. If "min", a minimum use of formation
fractions is made in order to avoid fitting the product of formation fractions
- and rate constants. If &quot;max&quot;, formation fractions are always used.
- </dd>
- <dt>speclist</dt>
- <dd>
- The specification of the observed variables and their submodel types and
- pathways can be given as a single list using this argument. Default is NULL.
- </dd>
- <dt>quiet</dt>
- <dd>
- Should messages be suppressed?
- </dd>
- <dt>verbose</dt>
- <dd>
- If <code>TRUE</code>, passed to <code>cfunction</code> if applicable to give
- detailed information about the C function being built.
- </dd>
- </dl>
+ and rate constants. If "max", formation fractions are always used.</p></td>
+ </tr>
+ <tr>
+ <th>speclist</th>
+ <td><p>The specification of the observed variables and their submodel types and
+ pathways can be given as a single list using this argument. Default is NULL.</p></td>
+ </tr>
+ <tr>
+ <th>quiet</th>
+ <td><p>Should messages be suppressed?</p></td>
+ </tr>
+ <tr>
+ <th>verbose</th>
+ <td><p>If <code>TRUE</code>, passed to <code>cfunction</code> if applicable to give
+ detailed information about the C function being built.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
<p>A list of class <code>mkinmod</code> for use with <code><a href='mkinfit.html'>mkinfit</a></code>, containing</p>
+<dt>diffs</dt><dd><p>A vector of string representations of differential equations,
+ one for each modelling variable.</p></dd>
+ <dt>parms</dt><dd><p>A vector of parameter names occurring in the differential equations.</p></dd>
+ <dt>map</dt><dd><p>A list containing named character vectors for each observed variable, specifying
+ the modelling variables by which it is represented.</p></dd>
+ <dt>use_of_ff</dt><dd><p>The content of <code>use_of_ff</code> is passed on in this list component.</p></dd>
+ <dt>coefmat</dt><dd><p>The coefficient matrix, if the system of differential equations can be
+ represented by one.</p></dd>
+
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
@@ -170,8 +182,8 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
- <p>NAFTA Technical Working Group on Pesticides (not dated) Guidance for
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
+<p>NAFTA Technical Working Group on Pesticides (not dated) Guidance for
Evaluating and Calculating Degradation Kinetics in Environmental
Media</p>
@@ -193,7 +205,7 @@
<span class='no'>SFO_SFO</span> <span class='kw'>&lt;-</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'>#&gt; Compilation argument:
-#&gt; /usr/lib/R/bin/R CMD SHLIB file2ac5b2884c1.c 2&gt; file2ac5b2884c1.c.err.txt
+#&gt; /usr/lib/R/bin/R CMD SHLIB file70ea30edf42a.c 2&gt; file70ea30edf42a.c.err.txt
#&gt; Program source:
#&gt; 1: #include &lt;R.h&gt;
#&gt; 2:
diff --git a/docs/reference/mkinparplot-4.png b/docs/reference/mkinparplot-4.png
index 77eafd95..8b32f554 100644
--- a/docs/reference/mkinparplot-4.png
+++ b/docs/reference/mkinparplot-4.png
Binary files differ
diff --git a/docs/reference/mkinparplot.html b/docs/reference/mkinparplot.html
index 0682211b..b0f1e5a6 100644
--- a/docs/reference/mkinparplot.html
+++ b/docs/reference/mkinparplot.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinparplot • mkin</title>
+<title>Function to plot the confidence intervals obtained using mkinfit — mkinparplot • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to plot the confidence intervals obtained using mkinfit</h1>
</div>
@@ -105,15 +108,16 @@
fitted using <code><a href='mkinfit.html'>mkinfit</a></code>.</p>
- <pre><span class='fu'>mkinparplot</span>(<span class='no'>object</span>)</pre>
+ <pre class="usage"><span class='fu'>mkinparplot</span>(<span class='no'>object</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>object</dt>
- <dd>
- A fit represented in an <code><a href='mkinfit.html'>mkinfit</a></code> object.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>object</th>
+ <td><p>A fit represented in an <code><a href='mkinfit.html'>mkinfit</a></code> object.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mkinplot.html b/docs/reference/mkinplot.html
index fdc61af4..7be76403 100644
--- a/docs/reference/mkinplot.html
+++ b/docs/reference/mkinplot.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinplot • mkin</title>
+<title>Plot the observed data and the fitted model of an mkinfit object — mkinplot • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,27 +100,27 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Plot the observed data and the fitted model of an mkinfit object</h1>
</div>
<p>Deprecated function. It now only calls the plot method <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code>.</p>
- <pre><span class='fu'>mkinplot</span>(<span class='no'>fit</span>, <span class='no'>...</span>)</pre>
+ <pre class="usage"><span class='fu'>mkinplot</span>(<span class='no'>fit</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>fit</dt>
- <dd>
- an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- <dt>&#8230;</dt>
- <dd>
- further arguments passed to <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code>.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>fit</th>
+ <td><p>an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>further arguments passed to <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mkinpredict.html b/docs/reference/mkinpredict.html
index 2348d40e..327a7d8d 100644
--- a/docs/reference/mkinpredict.html
+++ b/docs/reference/mkinpredict.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinpredict • mkin</title>
+<title>Produce predictions from a kinetic model using specific parameters — mkinpredict • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Produce predictions from a kinetic model using specific parameters</h1>
</div>
@@ -106,71 +109,72 @@
kinetic parameters and initial values for the state variables.</p>
- <pre><span class='fu'>mkinpredict</span>(<span class='no'>mkinmod</span>, <span class='no'>odeparms</span>, <span class='no'>odeini</span>, <span class='no'>outtimes</span>, <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>,
+ <pre class="usage"><span class='fu'>mkinpredict</span>(<span class='no'>mkinmod</span>, <span class='no'>odeparms</span>, <span class='no'>odeini</span>, <span class='no'>outtimes</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='st'>"auto"</span>, <span class='kw'>method.ode</span> <span class='kw'>=</span> <span class='st'>"lsoda"</span>, <span class='kw'>atol</span> <span class='kw'>=</span> <span class='fl'>1e-08</span>, <span class='kw'>rtol</span> <span class='kw'>=</span> <span class='fl'>1e-10</span>,
<span class='kw'>map_output</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>mkinmod</dt>
- <dd>
- A kinetic model as produced by <code><a href='mkinmod.html'>mkinmod</a></code>.
- </dd>
- <dt>odeparms</dt>
- <dd>
- A numeric vector specifying the parameters used in the kinetic model, which
- is generally defined as a set of ordinary differential equations.
- </dd>
- <dt>odeini</dt>
- <dd>
- A numeric vectory containing the initial values of the state variables of
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>mkinmod</th>
+ <td><p>A kinetic model as produced by <code><a href='mkinmod.html'>mkinmod</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>odeparms</th>
+ <td><p>A numeric vector specifying the parameters used in the kinetic model, which
+ is generally defined as a set of ordinary differential equations.</p></td>
+ </tr>
+ <tr>
+ <th>odeini</th>
+ <td><p>A numeric vectory containing the initial values of the state variables of
the model. Note that the state variables can differ from the observed
- variables, for example in the case of the SFORB model.
- </dd>
- <dt>outtimes</dt>
- <dd>
- A numeric vector specifying the time points for which model predictions
- should be generated.
- </dd>
- <dt>solution_type</dt>
- <dd>
- The method that should be used for producing the predictions. This should
- generally be &quot;analytical&quot; if there is only one observed variable, and
- usually &quot;deSolve&quot; in the case of several observed variables. The third
- possibility &quot;eigen&quot; is faster but not applicable to some models e.g.
- using FOMC for the parent compound.
- </dd>
- <dt>method.ode</dt>
- <dd>
- The solution method passed via <code>mkinpredict</code> to
- <code>ode</code> in case the solution type is &quot;deSolve&quot;. The default
- &quot;lsoda&quot; is performant, but sometimes fails to converge.
- </dd>
- <dt>use_compiled</dt>
- <dd>
- If set to <code>FALSE</code>, no compiled version of the <code><a href='mkinmod.html'>mkinmod</a></code>
- model is used, even if is present.
- </dd>
- <dt>atol</dt>
- <dd>
- Absolute error tolerance, passed to <code>ode</code>. Default is 1e-8,
- lower than in <code>lsoda</code>.
- </dd>
- <dt>rtol</dt>
- <dd>
- Absolute error tolerance, passed to <code>ode</code>. Default is 1e-10,
- much lower than in <code>lsoda</code>.
- </dd>
- <dt>map_output</dt>
- <dd>
- Boolean to specify if the output should list values for the observed
- variables (default) or for all state variables (if set to FALSE).
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Further arguments passed to the ode solver in case such a solver is used.
- </dd>
- </dl>
+ variables, for example in the case of the SFORB model.</p></td>
+ </tr>
+ <tr>
+ <th>outtimes</th>
+ <td><p>A numeric vector specifying the time points for which model predictions
+ should be generated.</p></td>
+ </tr>
+ <tr>
+ <th>solution_type</th>
+ <td><p>The method that should be used for producing the predictions. This should
+ generally be "analytical" if there is only one observed variable, and
+ usually "deSolve" in the case of several observed variables. The third
+ possibility "eigen" is faster but not applicable to some models e.g.
+ using FOMC for the parent compound.</p></td>
+ </tr>
+ <tr>
+ <th>method.ode</th>
+ <td><p>The solution method passed via <code>mkinpredict</code> to
+ <code>ode</code> in case the solution type is "deSolve". The default
+ "lsoda" is performant, but sometimes fails to converge.</p></td>
+ </tr>
+ <tr>
+ <th>use_compiled</th>
+ <td><p>If set to <code>FALSE</code>, no compiled version of the <code><a href='mkinmod.html'>mkinmod</a></code>
+ model is used, even if is present.</p></td>
+ </tr>
+ <tr>
+ <th>atol</th>
+ <td><p>Absolute error tolerance, passed to <code>ode</code>. Default is 1e-8,
+ lower than in <code>lsoda</code>.</p></td>
+ </tr>
+ <tr>
+ <th>rtol</th>
+ <td><p>Absolute error tolerance, passed to <code>ode</code>. Default is 1e-10,
+ much lower than in <code>lsoda</code>.</p></td>
+ </tr>
+ <tr>
+ <th>map_output</th>
+ <td><p>Boolean to specify if the output should list values for the observed
+ variables (default) or for all state variables (if set to FALSE).</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Further arguments passed to the ode solver in case such a solver is used.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -295,17 +299,17 @@
<span class='fu'>c</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'>seq</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'>#&gt; time parent m1
#&gt; 201 20 4.978707 27.46227</div><div class='output co'>#&gt; user system elapsed
-#&gt; 0.016 0.016 0.004 </div><div class='input'> <span class='fu'>system.time</span>(
+#&gt; 0.004 0.000 0.004 </div><div class='input'> <span class='fu'>system.time</span>(
<span class='fu'>print</span>(<span class='fu'>mkinpredict</span>(<span class='no'>SFO_SFO</span>, <span class='fu'>c</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'>c</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'>seq</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'>#&gt; time parent m1
#&gt; 201 20 4.978707 27.46227</div><div class='output co'>#&gt; user system elapsed
-#&gt; 0.016 0.004 0.002 </div><div class='input'> <span class='fu'>system.time</span>(
+#&gt; 0.004 0.000 0.002 </div><div class='input'> <span class='fu'>system.time</span>(
<span class='fu'>print</span>(<span class='fu'>mkinpredict</span>(<span class='no'>SFO_SFO</span>, <span class='fu'>c</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'>c</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'>seq</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'>#&gt; time parent m1
#&gt; 201 20 4.978707 27.46227</div><div class='output co'>#&gt; user system elapsed
-#&gt; 0.032 0.000 0.034 </div></pre>
+#&gt; 0.032 0.000 0.033 </div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
diff --git a/docs/reference/mkinresplot.html b/docs/reference/mkinresplot.html
index fd5722bc..44a641b6 100644
--- a/docs/reference/mkinresplot.html
+++ b/docs/reference/mkinresplot.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinresplot • mkin</title>
+<title>Function to plot residuals stored in an mkin object — mkinresplot • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to plot residuals stored in an mkin object</h1>
</div>
@@ -107,53 +110,55 @@
using the argument <code>show_residuals = TRUE</code>.</p>
- <pre><span class='fu'>mkinresplot</span>(<span class='no'>object</span>,
+ <pre class="usage"><span class='fu'>mkinresplot</span>(<span class='no'>object</span>,
<span class='kw'>obs_vars</span> <span class='kw'>=</span> <span class='fu'>names</span>(<span class='no'>object</span>$<span class='no'>mkinmod</span>$<span class='no'>map</span>),
<span class='kw'>xlim</span> <span class='kw'>=</span> <span class='fu'>c</span>(<span class='fl'>0</span>, <span class='fl'>1.1</span> * <span class='fu'>max</span>(<span class='no'>object</span>$<span class='no'>data</span>$<span class='no'>time</span>)),
<span class='kw'>xlab</span> <span class='kw'>=</span> <span class='st'>"Time"</span>, <span class='kw'>ylab</span> <span class='kw'>=</span> <span class='st'>"Residual"</span>,
<span class='kw'>maxabs</span> <span class='kw'>=</span> <span class='st'>"auto"</span>, <span class='kw'>legend</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>lpos</span> <span class='kw'>=</span> <span class='st'>"topright"</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>object</dt>
- <dd>
- A fit represented in an <code><a href='mkinfit.html'>mkinfit</a></code> object.
-</dd>
- <dt>obs_vars</dt>
- <dd>
- A character vector of names of the observed variables for which residuals
- should be plotted. Defaults to all observed variables in the model
-</dd>
- <dt>xlim</dt>
- <dd>
- plot range in x direction.
- </dd>
- <dt>xlab</dt>
- <dd>
- Label for the x axis. Defaults to &quot;Time [days]&quot;.
-</dd>
- <dt>ylab</dt>
- <dd>
- Label for the y axis. Defaults to &quot;Residual [% of applied radioactivity]&quot;.
-</dd>
- <dt>maxabs</dt>
- <dd>
- Maximum absolute value of the residuals. This is used for the scaling of
- the y axis and defaults to &quot;auto&quot;.
-</dd>
- <dt>legend</dt>
- <dd>
- Should a legend be plotted? Defaults to &quot;TRUE&quot;.
-</dd>
- <dt>lpos</dt>
- <dd>
- Where should the legend be placed? Default is &quot;topright&quot;. Will be passed on to
- <code>legend</code>. </dd>
- <dt>&#8230;</dt>
- <dd>
- further arguments passed to <code>plot</code>.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>object</th>
+ <td><p>A fit represented in an <code><a href='mkinfit.html'>mkinfit</a></code> object.</p></td>
+ </tr>
+ <tr>
+ <th>obs_vars</th>
+ <td><p>A character vector of names of the observed variables for which residuals
+ should be plotted. Defaults to all observed variables in the model</p></td>
+ </tr>
+ <tr>
+ <th>xlim</th>
+ <td><p>plot range in x direction.</p></td>
+ </tr>
+ <tr>
+ <th>xlab</th>
+ <td><p>Label for the x axis. Defaults to "Time [days]".</p></td>
+ </tr>
+ <tr>
+ <th>ylab</th>
+ <td><p>Label for the y axis. Defaults to "Residual [% of applied radioactivity]".</p></td>
+ </tr>
+ <tr>
+ <th>maxabs</th>
+ <td><p>Maximum absolute value of the residuals. This is used for the scaling of
+ the y axis and defaults to "auto".</p></td>
+ </tr>
+ <tr>
+ <th>legend</th>
+ <td><p>Should a legend be plotted? Defaults to "TRUE".</p></td>
+ </tr>
+ <tr>
+ <th>lpos</th>
+ <td><p>Where should the legend be placed? Default is "topright". Will be passed on to
+ <code>legend</code>.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>further arguments passed to <code>plot</code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mkinsub.html b/docs/reference/mkinsub.html
index aff0b593..2269b228 100644
--- a/docs/reference/mkinsub.html
+++ b/docs/reference/mkinsub.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mkinsub • mkin</title>
+<title>Function to set up a kinetic submodel for one state variable — mkinsub • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to set up a kinetic submodel for one state variable</h1>
</div>
@@ -105,33 +108,34 @@
<code><a href='mkinmod.html'>mkinmod</a></code>.</p>
- <pre><span class='fu'>mkinsub</span>(<span class='no'>submodel</span>, <span class='kw'>to</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>sink</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>full_name</span> <span class='kw'>=</span> <span class='fl'>NA</span>)</pre>
+ <pre class="usage"><span class='fu'>mkinsub</span>(<span class='no'>submodel</span>, <span class='kw'>to</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>sink</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>full_name</span> <span class='kw'>=</span> <span class='fl'>NA</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>submodel</dt>
- <dd>
- Character vector of length one to specify the submodel type. See
- <code><a href='mkinmod.html'>mkinmod</a></code> for the list of allowed submodel names.
- </dd>
- <dt>to</dt>
- <dd>
- Vector of the names of the state variable to which a transformation
- shall be included in the model.
- </dd>
- <dt>sink</dt>
- <dd>
- Should a pathway to sink be included in the model in addition to the
- pathways to other state variables?
- </dd>
- <dt>full_name</dt>
- <dd>
- An optional name to be used e.g. for plotting fits performed with the model.
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>submodel</th>
+ <td><p>Character vector of length one to specify the submodel type. See
+ <code><a href='mkinmod.html'>mkinmod</a></code> for the list of allowed submodel names.</p></td>
+ </tr>
+ <tr>
+ <th>to</th>
+ <td><p>Vector of the names of the state variable to which a transformation
+ shall be included in the model.</p></td>
+ </tr>
+ <tr>
+ <th>sink</th>
+ <td><p>Should a pathway to sink be included in the model in addition to the
+ pathways to other state variables?</p></td>
+ </tr>
+ <tr>
+ <th>full_name</th>
+ <td><p>An optional name to be used e.g. for plotting fits performed with the model.
You can use non-ASCII characters here, but then your R code will not be
portable, <em>i.e.</em> may produce unintended plot results on other
- operating systems or system configurations.
- </dd>
- </dl>
+ operating systems or system configurations.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/mmkin-15.png b/docs/reference/mmkin-15.png
new file mode 100644
index 00000000..f50a6185
--- /dev/null
+++ b/docs/reference/mmkin-15.png
Binary files differ
diff --git a/docs/reference/mmkin-17.png b/docs/reference/mmkin-17.png
new file mode 100644
index 00000000..72cfc5e7
--- /dev/null
+++ b/docs/reference/mmkin-17.png
Binary files differ
diff --git a/docs/reference/mmkin-19.png b/docs/reference/mmkin-19.png
new file mode 100644
index 00000000..0b315b1a
--- /dev/null
+++ b/docs/reference/mmkin-19.png
Binary files differ
diff --git a/docs/reference/mmkin-21.png b/docs/reference/mmkin-21.png
new file mode 100644
index 00000000..b98940ff
--- /dev/null
+++ b/docs/reference/mmkin-21.png
Binary files differ
diff --git a/docs/reference/mmkin-23.png b/docs/reference/mmkin-23.png
new file mode 100644
index 00000000..5ca52efb
--- /dev/null
+++ b/docs/reference/mmkin-23.png
Binary files differ
diff --git a/docs/reference/mmkin.html b/docs/reference/mmkin.html
index 67397827..fe10c88f 100644
--- a/docs/reference/mmkin.html
+++ b/docs/reference/mmkin.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — mmkin • mkin</title>
+<title>Fit one or more kinetic models with one or more state variables to one or more datasets — mmkin • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Fit one or more kinetic models with one or more state variables to one or more datasets</h1>
</div>
@@ -105,37 +108,38 @@
specified in its first two arguments.</p>
- <pre><span class='fu'>mmkin</span>(<span class='no'>models</span>, <span class='no'>datasets</span>,
+ <pre class="usage"><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='fu'>round</span>(<span class='fu'>detectCores</span>()/<span class='fl'>2</span>), <span class='kw'>cluster</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>models</dt>
- <dd>
- Either a character vector of shorthand names (&quot;SFO&quot;, &quot;FOMC&quot;, &quot;DFOP&quot;,
- &quot;HS&quot;, &quot;SFORB&quot;), or an optionally named list of <code><a href='mkinmod.html'>mkinmod</a></code>
- objects.
- </dd>
- <dt>datasets</dt>
- <dd>
- An optionally named list of datasets suitable as observed data for
- <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- <dt>cores</dt>
- <dd>
- The number of cores to be used for multicore processing. This is only
- used when the <code>cluster</code> argument is <code>NULL</code>.
- </dd>
- <dt>cluster</dt>
- <dd>
- A cluster as returned by <code>makeCluster</code> to be used for parallel
- execution.
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Further arguments that will be passed to <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>models</th>
+ <td><p>Either a character vector of shorthand names ("SFO", "FOMC", "DFOP",
+ "HS", "SFORB"), or an optionally named list of <code><a href='mkinmod.html'>mkinmod</a></code>
+ objects.</p></td>
+ </tr>
+ <tr>
+ <th>datasets</th>
+ <td><p>An optionally named list of datasets suitable as observed data for
+ <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>cores</th>
+ <td><p>The number of cores to be used for multicore processing. This is only
+ used when the <code>cluster</code> argument is <code>NULL</code>.</p></td>
+ </tr>
+ <tr>
+ <th>cluster</th>
+ <td><p>A cluster as returned by <code>makeCluster</code> to be used for parallel
+ execution.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Further arguments that will be passed to <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -144,7 +148,7 @@
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
- <p><code><a href='[.mmkin.html'>[.mmkin</a></code> for subsetting, <code><a href='plot.mmkin.html'>plot.mmkin</a></code> for plotting.</p>
+ <p><code><a href='Extract.mmkin.html'>[.mmkin</a></code> for subsetting, <code><a href='plot.mmkin.html'>plot.mmkin</a></code> for plotting.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
@@ -160,11 +164,12 @@
<span class='fu'>names</span>(<span class='no'>datasets</span>) <span class='kw'>&lt;-</span> <span class='fu'>paste</span>(<span class='st'>"Dataset"</span>, <span class='fl'>1</span>:<span class='fl'>3</span>)
<span class='no'>time_default</span> <span class='kw'>&lt;-</span> <span class='fu'>system.time</span>(<span class='no'>fits.0</span> <span class='kw'>&lt;-</span> <span class='fu'>mmkin</span>(<span class='no'>models</span>, <span class='no'>datasets</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>))
-<span class='no'>time_1</span> <span class='kw'>&lt;-</span> <span class='fu'>system.time</span>(<span class='no'>fits.4</span> <span class='kw'>&lt;-</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_1</span> <span class='kw'>&lt;-</span> <span class='fu'>system.time</span>(<span class='no'>fits.4</span> <span class='kw'>&lt;-</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>))</div><div class='output co'>#&gt; <span class='warning'>Warning: Optimisation by method Port did not converge.</span>
+#&gt; <span class='warning'>Convergence code is 1</span></div><div class='output co'>#&gt; <span class='warning'>Warning: Optimisation by method Port did not converge.</span>
+#&gt; <span class='warning'>Convergence code is 1</span></div><div class='input'>
<span class='no'>time_default</span></div><div class='output co'>#&gt; user system elapsed
-#&gt; 16.360 0.128 9.017 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#&gt; user system elapsed
-#&gt; 21.888 0.004 21.892 </div><div class='input'>
+#&gt; 16.092 0.132 11.761 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#&gt; user system elapsed
+#&gt; 25.004 0.000 25.000 </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'>#&gt; $ff
#&gt; parent_M1 parent_sink M1_M2 M1_sink
#&gt; 0.7340479 0.2659521 0.7505687 0.2494313
@@ -174,17 +179,17 @@
#&gt;
#&gt; $distimes
#&gt; DT50 DT90
-#&gt; parent 0.8777688 2.915885
+#&gt; parent 0.8777689 2.915885
#&gt; M1 2.3257456 7.725960
-#&gt; M2 33.7200881 112.015708
+#&gt; M2 33.7200862 112.015702
#&gt; </div><div class='input'>
<span class='co'># plot.mkinfit handles rows or columns of mmkin result objects</span>
-<span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, ])</div><img src='mmkin-12.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, ], <span class='kw'>obs_var</span> <span class='kw'>=</span> <span class='fu'>c</span>(<span class='st'>"M1"</span>, <span class='st'>"M2"</span>))</div><img src='mmkin-14.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>plot</span>(<span class='no'>fits.0</span>[, <span class='fl'>1</span>])</div><img src='mmkin-16.png' alt='' width='540' height='400' /><div class='input'><span class='co'># Use double brackets to extract a single mkinfit object, which will be plotted</span>
+<span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, ])</div><img src='mmkin-15.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, ], <span class='kw'>obs_var</span> <span class='kw'>=</span> <span class='fu'>c</span>(<span class='st'>"M1"</span>, <span class='st'>"M2"</span>))</div><img src='mmkin-17.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>plot</span>(<span class='no'>fits.0</span>[, <span class='fl'>1</span>])</div><img src='mmkin-19.png' alt='' width='540' height='400' /><div class='input'><span class='co'># Use double brackets to extract a single mkinfit object, which will be plotted</span>
<span class='co'># by plot.mkinfit and can be plotted using plot_sep</span>
-<span class='fu'>plot</span>(<span class='no'>fits.0</span><span class='kw'>[[</span><span class='fl'>1</span>, <span class='fl'>1</span>]], <span class='kw'>sep_obs</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>show_residuals</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>show_errmin</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><img src='mmkin-18.png' alt='' width='540' height='400' /><div class='input'><span class='fu'><a href='plot.mkinfit.html'>plot_sep</a></span>(<span class='no'>fits.0</span><span class='kw'>[[</span><span class='fl'>1</span>, <span class='fl'>1</span>]])
+<span class='fu'>plot</span>(<span class='no'>fits.0</span><span class='kw'>[[</span><span class='fl'>1</span>, <span class='fl'>1</span>]], <span class='kw'>sep_obs</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>show_residuals</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>show_errmin</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><img src='mmkin-21.png' alt='' width='540' height='400' /><div class='input'><span class='fu'><a href='plot.mkinfit.html'>plot_sep</a></span>(<span class='no'>fits.0</span><span class='kw'>[[</span><span class='fl'>1</span>, <span class='fl'>1</span>]])
<span class='co'># Plotting with mmkin (single brackets, extracting an mmkin object) does not</span>
<span class='co'># allow to plot the observed variables separately</span>
-<span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, <span class='fl'>1</span>])</div><img src='mmkin-20.png' alt='' width='540' height='400' /><div class='input'>
+<span class='fu'>plot</span>(<span class='no'>fits.0</span>[<span class='fl'>1</span>, <span class='fl'>1</span>])</div><img src='mmkin-23.png' alt='' width='540' height='400' /><div class='input'>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
diff --git a/docs/reference/plot.mkinfit.html b/docs/reference/plot.mkinfit.html
index e77b7b54..2126c36d 100644
--- a/docs/reference/plot.mkinfit.html
+++ b/docs/reference/plot.mkinfit.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — plot.mkinfit • mkin</title>
+<title>Plot the observed data and the fitted model of an mkinfit object — plot.mkinfit • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,21 +100,19 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Plot the observed data and the fitted model of an mkinfit object</h1>
</div>
<p>Solves the differential equations with the optimised and fixed parameters
from a previous successful call to <code><a href='mkinfit.html'>mkinfit</a></code> and plots
the observed data together with the solution of the fitted model.</p>
-
- <p>If the current plot device is a <code><a href='http://www.rdocumentation.org/packages/tikzDevice/topics/tikz'>tikz</a></code> device,
+<p>If the current plot device is a <code><a href='http://www.rdocumentation.org/packages/tikzDevice/topics/tikz'>tikz</a></code> device,
then latex is being used for the formatting of the chi2 error level,
if <code>show_errmin = TRUE</code>.</p>
- <pre># S3 method for mkinfit
+ <pre class="usage"># S3 method for mkinfit
plot(x, fit = x,
obs_vars = names(fit$mkinmod$map),
xlab = "Time", ylab = "Observed",
@@ -126,100 +128,101 @@ plot(x, fit = x,
plot_sep(fit, sep_obs = TRUE, show_residuals = TRUE, show_errmin = TRUE, &#8230;)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>
- Alias for fit introduced for compatibility with the generic S3 method.
- </dd>
- <dt>fit</dt>
- <dd>
- An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- <dt>obs_vars</dt>
- <dd>
- A character vector of names of the observed variables for which the
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>Alias for fit introduced for compatibility with the generic S3 method.</p></td>
+ </tr>
+ <tr>
+ <th>fit</th>
+ <td><p>An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>obs_vars</th>
+ <td><p>A character vector of names of the observed variables for which the
data and the model should be plotted. Defauls to all observed variables
- in the model.
- </dd>
- <dt>xlab</dt>
- <dd>
- Label for the x axis.
- </dd>
- <dt>ylab</dt>
- <dd>
- Label for the y axis.
- </dd>
- <dt>xlim</dt>
- <dd>
- Plot range in x direction.
- </dd>
- <dt>ylim</dt>
- <dd>
- Plot range in y direction.
- </dd>
- <dt>col_obs</dt>
- <dd>
- Colors used for plotting the observed data and the corresponding model prediction lines.
- </dd>
- <dt>pch_obs</dt>
- <dd>
- Symbols to be used for plotting the data.
- </dd>
- <dt>lty_obs</dt>
- <dd>
- Line types to be used for the model predictions.
- </dd>
- <dt>add</dt>
- <dd>
- Should the plot be added to an existing plot?
- </dd>
- <dt>legend</dt>
- <dd>
- Should a legend be added to the plot?
- </dd>
- <dt>show_residuals</dt>
- <dd>
- Should residuals be shown? If only one plot of the fits is shown, the
+ in the model.</p></td>
+ </tr>
+ <tr>
+ <th>xlab</th>
+ <td><p>Label for the x axis.</p></td>
+ </tr>
+ <tr>
+ <th>ylab</th>
+ <td><p>Label for the y axis.</p></td>
+ </tr>
+ <tr>
+ <th>xlim</th>
+ <td><p>Plot range in x direction.</p></td>
+ </tr>
+ <tr>
+ <th>ylim</th>
+ <td><p>Plot range in y direction.</p></td>
+ </tr>
+ <tr>
+ <th>col_obs</th>
+ <td><p>Colors used for plotting the observed data and the corresponding model prediction lines.</p></td>
+ </tr>
+ <tr>
+ <th>pch_obs</th>
+ <td><p>Symbols to be used for plotting the data.</p></td>
+ </tr>
+ <tr>
+ <th>lty_obs</th>
+ <td><p>Line types to be used for the model predictions.</p></td>
+ </tr>
+ <tr>
+ <th>add</th>
+ <td><p>Should the plot be added to an existing plot?</p></td>
+ </tr>
+ <tr>
+ <th>legend</th>
+ <td><p>Should a legend be added to the plot?</p></td>
+ </tr>
+ <tr>
+ <th>show_residuals</th>
+ <td><p>Should residuals be shown? If only one plot of the fits is shown, the
residual plot is in the lower third of the plot? Otherwise, i.e. if
- &quot;sep_obs&quot; is given, the residual plots will be located to the right of
- the plots of the fitted curves.
- </dd>
- <dt>maxabs</dt>
- <dd>
- Maximum absolute value of the residuals. This is used for the scaling of
- the y axis and defaults to &quot;auto&quot;.
- </dd>
- <dt>sep_obs</dt>
- <dd>
- Should the observed variables be shown in separate subplots? If yes, residual plots
- requested by &quot;show_residuals&quot; will be shown next to, not below the plot of the fits.
- </dd>
- <dt>rel.height.middle</dt>
- <dd>
- The relative height of the middle plot, if more than two rows of plots are shown.
- </dd>
- <dt>lpos</dt>
- <dd>
- Position(s) of the legend(s). Passed to <code>legend</code> as the first argument.
- If not length one, this should be of the same length as the obs_var argument.
- </dd>
- <dt>inset</dt>
- <dd>
- Passed to <code>legend</code> if applicable.
- </dd>
- <dt>show_errmin</dt>
- <dd>
- Should the FOCUS chi2 error value be shown in the upper margin of the plot?
- </dd>
- <dt>errmin_digits</dt>
- <dd>
- The number of significant digits for rounding the FOCUS chi2 error percentage.
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Further arguments passed to <code>plot</code>.
- </dd>
- </dl>
+ "sep_obs" is given, the residual plots will be located to the right of
+ the plots of the fitted curves.</p></td>
+ </tr>
+ <tr>
+ <th>maxabs</th>
+ <td><p>Maximum absolute value of the residuals. This is used for the scaling of
+ the y axis and defaults to "auto".</p></td>
+ </tr>
+ <tr>
+ <th>sep_obs</th>
+ <td><p>Should the observed variables be shown in separate subplots? If yes, residual plots
+ requested by "show_residuals" will be shown next to, not below the plot of the fits.</p></td>
+ </tr>
+ <tr>
+ <th>rel.height.middle</th>
+ <td><p>The relative height of the middle plot, if more than two rows of plots are shown.</p></td>
+ </tr>
+ <tr>
+ <th>lpos</th>
+ <td><p>Position(s) of the legend(s). Passed to <code>legend</code> as the first argument.
+ If not length one, this should be of the same length as the obs_var argument.</p></td>
+ </tr>
+ <tr>
+ <th>inset</th>
+ <td><p>Passed to <code>legend</code> if applicable.</p></td>
+ </tr>
+ <tr>
+ <th>show_errmin</th>
+ <td><p>Should the FOCUS chi2 error value be shown in the upper margin of the plot?</p></td>
+ </tr>
+ <tr>
+ <th>errmin_digits</th>
+ <td><p>The number of significant digits for rounding the FOCUS chi2 error percentage.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Further arguments passed to <code>plot</code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/plot.mmkin.html b/docs/reference/plot.mmkin.html
index 1d5d0574..9f122fa8 100644
--- a/docs/reference/plot.mmkin.html
+++ b/docs/reference/plot.mmkin.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -96,53 +104,53 @@
</div>
- <p>When x is a row selected from an mmkin object (<code><a href='[.mmkin.html'>[.mmkin</a></code>), the same model
+ <p>When x is a row selected from an mmkin object (<code><a href='Extract.mmkin.html'>[.mmkin</a></code>), the same model
fitted for at least one dataset is shown. When it is a column, the fit of at least one model
to the same dataset is shown.</p>
-
- <p>If the current plot device is a <code><a href='http://www.rdocumentation.org/packages/tikzDevice/topics/tikz'>tikz</a></code> device,
+<p>If the current plot device is a <code><a href='http://www.rdocumentation.org/packages/tikzDevice/topics/tikz'>tikz</a></code> device,
then latex is being used for the formatting of the chi2 error level.</p>
- <pre><span class='co'># S3 method for mmkin</span>
+ <pre class="usage"><span class='co'># S3 method for mmkin</span>
<span class='fu'>plot</span>(<span class='no'>x</span>, <span class='kw'>main</span> <span class='kw'>=</span> <span class='st'>"auto"</span>, <span class='kw'>legends</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>errmin_var</span> <span class='kw'>=</span> <span class='st'>"All data"</span>, <span class='kw'>errmin_digits</span> <span class='kw'>=</span> <span class='fl'>3</span>,
<span class='kw'>cex</span> <span class='kw'>=</span> <span class='fl'>0.7</span>, <span class='kw'>rel.height.middle</span> <span class='kw'>=</span> <span class='fl'>0.9</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>
- An object of class <code><a href='mmkin.html'>mmkin</a></code>, with either one row or one column.
-</dd>
- <dt>main</dt>
- <dd>
- The main title placed on the outer margin of the plot.
-</dd>
- <dt>legends</dt>
- <dd>
- An index for the fits for which legends should be shown.
-</dd>
- <dt>errmin_var</dt>
- <dd>
- The variable for which the FOCUS chi2 error value should be shown.
-</dd>
- <dt>errmin_digits</dt>
- <dd>
- The number of significant digits for rounding the FOCUS chi2 error percentage.
-</dd>
- <dt>cex</dt>
- <dd>
- Passed to the plot functions and <code>mtext</code>.
-</dd>
- <dt>rel.height.middle</dt>
- <dd>
- The relative height of the middle plot, if more than two rows of plots are shown.
-</dd>
- <dt>&#8230;</dt>
- <dd>
- Further arguments passed to <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code> and <code><a href='mkinresplot.html'>mkinresplot</a></code>.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>An object of class <code><a href='mmkin.html'>mmkin</a></code>, with either one row or one column.</p></td>
+ </tr>
+ <tr>
+ <th>main</th>
+ <td><p>The main title placed on the outer margin of the plot.</p></td>
+ </tr>
+ <tr>
+ <th>legends</th>
+ <td><p>An index for the fits for which legends should be shown.</p></td>
+ </tr>
+ <tr>
+ <th>errmin_var</th>
+ <td><p>The variable for which the FOCUS chi2 error value should be shown.</p></td>
+ </tr>
+ <tr>
+ <th>errmin_digits</th>
+ <td><p>The number of significant digits for rounding the FOCUS chi2 error percentage.</p></td>
+ </tr>
+ <tr>
+ <th>cex</th>
+ <td><p>Passed to the plot functions and <code>mtext</code>.</p></td>
+ </tr>
+ <tr>
+ <th>rel.height.middle</th>
+ <td><p>The relative height of the middle plot, if more than two rows of plots are shown.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Further arguments passed to <code><a href='plot.mkinfit.html'>plot.mkinfit</a></code> and <code><a href='mkinresplot.html'>mkinresplot</a></code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
diff --git a/docs/reference/print.mkinds.html b/docs/reference/print.mkinds.html
index b93f416b..50321a7a 100644
--- a/docs/reference/print.mkinds.html
+++ b/docs/reference/print.mkinds.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -102,20 +107,21 @@
<p>Print mkinds objects.</p>
- <pre><span class='co'># S3 method for mkinds</span>
+ <pre class="usage"><span class='co'># S3 method for mkinds</span>
<span class='fu'>print</span>(<span class='no'>x</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>
- An <code><a href='mkinds.html'>mkinds</a></code> object.
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Not used.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>An <code><a href='mkinds.html'>mkinds</a></code> object.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Not used.</p></td>
+ </tr>
+ </table>
</div>
diff --git a/docs/reference/print.mkinmod.html b/docs/reference/print.mkinmod.html
index d63694d7..5fd9ebad 100644
--- a/docs/reference/print.mkinmod.html
+++ b/docs/reference/print.mkinmod.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -99,20 +107,21 @@
<p>Print mkinmod objects in a way that the user finds his way to get to its components.</p>
- <pre><span class='co'># S3 method for mkinmod</span>
+ <pre class="usage"><span class='co'># S3 method for mkinmod</span>
<span class='fu'>print</span>(<span class='no'>x</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>x</dt>
- <dd>
- An <code><a href='mkinmod.html'>mkinmod</a></code> object.
- </dd>
- <dt>&#8230;</dt>
- <dd>
- Not used.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>x</th>
+ <td><p>An <code><a href='mkinmod.html'>mkinmod</a></code> object.</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>Not used.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
diff --git a/docs/reference/schaefer07_complex_case.html b/docs/reference/schaefer07_complex_case.html
index 46f0a84b..1415d318 100644
--- a/docs/reference/schaefer07_complex_case.html
+++ b/docs/reference/schaefer07_complex_case.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -101,20 +109,18 @@
The results from the fitting are also included.</p>
- <pre><span class='fu'>data</span>(<span class='no'>schaefer07_complex_case</span>)</pre>
+ <pre class="usage"><span class='fu'>data</span>(<span class='no'>schaefer07_complex_case</span>)</pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>The data set is a data frame with 8 observations on the following 6 variables.
- <dl class='dl-horizontal'>
- <dt><code>time</code></dt><dd>a numeric vector</dd>
- <dt><code>parent</code></dt><dd>a numeric vector</dd>
- <dt><code>A1</code></dt><dd>a numeric vector</dd>
- <dt><code>B1</code></dt><dd>a numeric vector</dd>
- <dt><code>C1</code></dt><dd>a numeric vector</dd>
- <dt><code>A2</code></dt><dd>a numeric vector</dd>
- </dl></p>
- <p>The results are a data frame with 14 results for different parameter values</p>
+ <p>The data set is a data frame with 8 observations on the following 6 variables.</p><dl class='dl-horizontal'>
+ <dt><code>time</code></dt><dd><p>a numeric vector</p></dd>
+ <dt><code>parent</code></dt><dd><p>a numeric vector</p></dd>
+ <dt><code>A1</code></dt><dd><p>a numeric vector</p></dd>
+ <dt><code>B1</code></dt><dd><p>a numeric vector</p></dd>
+ <dt><code>C1</code></dt><dd><p>a numeric vector</p></dd>
+ <dt><code>A2</code></dt><dd><p>a numeric vector</p></dd>
+ </dl><p>The results are a data frame with 14 results for different parameter values</p>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
@@ -135,7 +141,7 @@
<span class='no'>fit</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>model</span>, <span class='no'>data</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
<span class='fu'>plot</span>(<span class='no'>fit</span>)</div><img src='schaefer07_complex_case-4.png' alt='' width='540' height='400' /><div class='input'> <span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; $ff
#&gt; parent_A1 parent_B1 parent_C1 parent_sink A1_A2 A1_sink
-#&gt; 0.3809619 0.1954668 0.4235713 0.0000000 0.4479607 0.5520393
+#&gt; 0.3809618 0.1954667 0.4235715 0.0000000 0.4479596 0.5520404
#&gt;
#&gt; $SFORB
#&gt; logical(0)
@@ -143,10 +149,10 @@
#&gt; $distimes
#&gt; DT50 DT90
#&gt; parent 13.95078 46.34349
-#&gt; A1 49.75343 165.27732
-#&gt; B1 37.26906 123.80513
-#&gt; C1 11.23131 37.30959
-#&gt; A2 28.50640 94.69621
+#&gt; A1 49.75345 165.27739
+#&gt; B1 37.26908 123.80521
+#&gt; C1 11.23130 37.30957
+#&gt; A2 28.50652 94.69662
#&gt; </div><div class='input'>
<span class='co'># Compare with the results obtained in the original publication</span>
<span class='fu'>print</span>(<span class='no'>schaefer07_complex_results</span>)</div><div class='output co'>#&gt; compound parameter KinGUI ModelMaker deviation
diff --git a/docs/reference/summary.mkinfit.html b/docs/reference/summary.mkinfit.html
index b305410d..dbed926d 100644
--- a/docs/reference/summary.mkinfit.html
+++ b/docs/reference/summary.mkinfit.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -102,48 +110,66 @@
and residual values.</p>
- <pre><span class='co'># S3 method for mkinfit</span>
+ <pre class="usage"><span class='co'># S3 method for mkinfit</span>
<span class='fu'>summary</span>(<span class='no'>object</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>distimes</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>alpha</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='no'>...</span>)
<span class='co'># S3 method for summary.mkinfit</span>
<span class='fu'>print</span>(<span class='no'>x</span>, <span class='kw'>digits</span> <span class='kw'>=</span> <span class='fu'>max</span>(<span class='fl'>3</span>, <span class='fu'>getOption</span>(<span class='st'>"digits"</span>) - <span class='fl'>3</span>), <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>object</dt>
- <dd>
- an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
-</dd>
- <dt>x</dt>
- <dd>
- an object of class <code>summary.mkinfit</code>.
-</dd>
- <dt>data</dt>
- <dd>
- logical, indicating whether the data should be included in the summary.
-</dd>
- <dt>distimes</dt>
- <dd>
- logical, indicating whether DT50 and DT90 values should be included.
-</dd>
- <dt>alpha</dt>
- <dd>
- error level for confidence interval estimation from t distribution
-</dd>
- <dt>digits</dt>
- <dd>
- Number of digits to use for printing
-</dd>
- <dt>&#8230;</dt>
- <dd>
- optional arguments passed to methods like <code>print</code>.
-</dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>object</th>
+ <td><p>an object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>x</th>
+ <td><p>an object of class <code>summary.mkinfit</code>.</p></td>
+ </tr>
+ <tr>
+ <th>data</th>
+ <td><p>logical, indicating whether the data should be included in the summary.</p></td>
+ </tr>
+ <tr>
+ <th>distimes</th>
+ <td><p>logical, indicating whether DT50 and DT90 values should be included.</p></td>
+ </tr>
+ <tr>
+ <th>alpha</th>
+ <td><p>error level for confidence interval estimation from t distribution</p></td>
+ </tr>
+ <tr>
+ <th>digits</th>
+ <td><p>Number of digits to use for printing</p></td>
+ </tr>
+ <tr>
+ <th>&#8230;</th>
+ <td><p>optional arguments passed to methods like <code>print</code>.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
<p>The summary function returns a list derived from
<code>summary.modFit</code>, with components, among others</p>
- <p>The print method is called for its side effect, i.e. printing the summary.</p>
+<dt>version, Rversion</dt><dd><p>The mkin and R versions used</p></dd>
+ <dt>date.fit, date.summary</dt><dd><p>The dates where the fit and the summary were produced</p></dd>
+ <dt>use_of_ff</dt><dd><p>Was maximum or minimum use made of formation fractions</p></dd>
+ <dt>residuals, residualVariance, sigma, modVariance, df</dt><dd><p>As in summary.modFit</p></dd>
+ <dt>cov.unscaled, cov.scaled, info, niter, stopmess, par</dt><dd><p>As in summary.modFit</p></dd>
+ <dt>bpar</dt><dd><p>Optimised and backtransformed parameters</p></dd>
+ <dt>diffs </dt><dd><p>The differential equations used in the model</p></dd>
+ <dt>data </dt><dd><p>The data (see Description above).</p></dd>
+ <dt>start </dt><dd><p>The starting values and bounds, if applicable, for optimised parameters.</p></dd>
+ <dt>fixed </dt><dd><p>The values of fixed parameters.</p></dd>
+ <dt>errmin </dt><dd><p>The chi2 error levels for each observed variable.</p></dd>
+ <dt>bparms.ode </dt><dd><p>All backtransformed ODE parameters, for use as starting parameters for
+ related models.</p></dd>
+ <dt>ff </dt><dd><p>The estimated formation fractions derived from the fitted model.</p></dd>
+ <dt>distimes </dt><dd><p>The DT50 and DT90 values for each observed variable.</p></dd>
+ <dt>SFORB</dt><dd><p>If applicable, eigenvalues of SFORB components of the model.</p></dd>
+ The print method is called for its side effect, i.e. printing the summary.
+
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
@@ -151,21 +177,21 @@
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://focus.jrc.ec.europa.eu/dk'>http://focus.jrc.ec.europa.eu/dk</a></p>
+ <a href = 'http://esdac.jrc.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
- <pre class="examples"><div class='input'> <span class='fu'>summary</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'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:57:55 2016
-#&gt; Date of summary: Thu Dec 8 07:57:55 2016
+ <pre class="examples"><div class='input'> <span class='fu'>summary</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'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:20 2017
+#&gt; Date of summary: Fri May 5 12:46:20 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent_sink * parent
#&gt;
#&gt; Model predictions using solution type analytical
#&gt;
-#&gt; Fitted with method Port using 35 model solutions performed in 0.079 s
+#&gt; Fitted with method Port using 35 model solutions performed in 0.082 s
#&gt;
#&gt; Weighting: none
#&gt;
diff --git a/docs/reference/synthetic_data_for_UBA.html b/docs/reference/synthetic_data_for_UBA.html
index bc2bb02b..d8ff3a1e 100644
--- a/docs/reference/synthetic_data_for_UBA.html
+++ b/docs/reference/synthetic_data_for_UBA.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -99,39 +107,34 @@
<p>The 12 datasets were generated using four different models and three different
variance components. The four models are either the SFO or the DFOP model with either
two sequential or two parallel metabolites.</p>
-
- <p>Variance component &#39;a&#39; is based on a normal distribution with standard deviation of 3,
- Variance component &#39;b&#39; is also based on a normal distribution, but with a standard deviation of 7.
- Variance component &#39;c&#39; is based on the error model from Rocke and Lorenzato (1995), with the
+<p>Variance component 'a' is based on a normal distribution with standard deviation of 3,
+ Variance component 'b' is also based on a normal distribution, but with a standard deviation of 7.
+ Variance component 'c' is based on the error model from Rocke and Lorenzato (1995), with the
minimum standard deviation (for small y values) of 0.5, and a proportionality constant of 0.07
for the increase of the standard deviation with y.</p>
-
- <p>Initial concentrations for metabolites and all values where adding the variance component resulted
+<p>Initial concentrations for metabolites and all values where adding the variance component resulted
in a value below the assumed limit of detection of 0.1 were set to <code>NA</code>.</p>
-
- <p>As an example, the first dataset has the title <code>SFO_lin_a</code> and is based on the SFO model
- with two sequential metabolites (linear pathway), with added variance component &#39;a&#39;.</p>
-
- <p>Compare also the code in the example section to see the degradation models.</p>
+<p>As an example, the first dataset has the title <code>SFO_lin_a</code> and is based on the SFO model
+ with two sequential metabolites (linear pathway), with added variance component 'a'.</p>
+<p>Compare also the code in the example section to see the degradation models.</p>
- <pre><span class='no'>synthetic_data_for_UBA_2014</span></pre>
+ <pre class="usage"><span class='no'>synthetic_data_for_UBA_2014</span></pre>
<h2 class="hasAnchor" id="format"><a class="anchor" href="#format"></a>Format</h2>
- <p>A list containing datasets in the form internally used by the &#39;gmkin&#39; package.
+ <p>A list containing datasets in the form internally used by the 'gmkin' package.
The list has twelfe components. Each of the components is one dataset that has,
- among others, the following components
- <dl class='dl-horizontal'>
- <dt><code>title</code></dt><dd>The name of the dataset, e.g. <code>SFO_lin_a</code></dd>
- <dt><code>data</code></dt><dd>A data frame with the data in the form expected by <code><a href='mkinfit.html'>mkinfit</a></code></dd>
- </dl></p>
+ among others, the following components</p><dl class='dl-horizontal'>
+ <dt><code>title</code></dt><dd><p>The name of the dataset, e.g. <code>SFO_lin_a</code></p></dd>
+ <dt><code>data</code></dt><dd><p>A data frame with the data in the form expected by <code><a href='mkinfit.html'>mkinfit</a></code></p></dd>
+ </dl>
<h2 class="hasAnchor" id="source"><a class="anchor" href="#source"></a>Source</h2>
<p>Ranke (2014) Prüfung und Validierung von Modellierungssoftware als Alternative
- zu ModelMaker 4.0, Umweltbundesamt Projektnummer 27452</p>
- <p>Rocke, David M. und Lorenzato, Stefan (1995) A two-component model for
+ zu ModelMaker 4.0, Umweltbundesamt Projektnummer 27452
+ Rocke, David M. und Lorenzato, Stefan (1995) A two-component model for
measurement error in analytical chemistry. Technometrics 37(2), 176-184.</p>
@@ -153,10 +156,10 @@
<span class='kw'>M1</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>),
<span class='kw'>M2</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</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'>#&gt; <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'>
<span class='no'>fit</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>m_synth_SFO_lin</span>, <span class='no'>synthetic_data_for_UBA_2014</span><span class='kw'>[[</span><span class='fl'>1</span>]]$<span class='no'>data</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'><a href='plot.mkinfit.html'>plot_sep</a></span>(<span class='no'>fit</span>)</div><img src='synthetic_data_for_UBA_2014-10.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>summary</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:57:58 2016
-#&gt; Date of summary: Thu Dec 8 07:57:58 2016
+<span class='fu'><a href='plot.mkinfit.html'>plot_sep</a></span>(<span class='no'>fit</span>)</div><img src='synthetic_data_for_UBA_2014-10.png' alt='' width='540' height='400' /><div class='input'><span class='fu'>summary</span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:23 2017
+#&gt; Date of summary: Fri May 5 12:46:23 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -165,7 +168,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 351 model solutions performed in 2.152 s
+#&gt; Fitted with method Port using 381 model solutions performed in 2.203 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -205,10 +208,10 @@
#&gt; parent_0 log_k_parent log_k_M1 log_k_M2 f_parent_ilr_1
#&gt; parent_0 1.00000 0.40213 -0.1693 0.02912 -0.4726
#&gt; log_k_parent 0.40213 1.00000 -0.4210 0.07241 -0.5837
-#&gt; log_k_M1 -0.16931 -0.42102 1.0000 -0.37657 0.7438
+#&gt; log_k_M1 -0.16931 -0.42103 1.0000 -0.37657 0.7438
#&gt; log_k_M2 0.02912 0.07241 -0.3766 1.00000 -0.2518
#&gt; f_parent_ilr_1 -0.47263 -0.58367 0.7438 -0.25177 1.0000
-#&gt; f_M1_ilr_1 0.17148 0.42642 -0.8054 0.52648 -0.8602
+#&gt; f_M1_ilr_1 0.17148 0.42643 -0.8054 0.52647 -0.8602
#&gt; f_M1_ilr_1
#&gt; parent_0 0.1715
#&gt; log_k_parent 0.4264
@@ -255,8 +258,8 @@
#&gt; time variable observed predicted residual
#&gt; 0 parent 101.5 1.021e+02 -0.56248
#&gt; 0 parent 101.2 1.021e+02 -0.86248
-#&gt; 1 parent 53.9 4.873e+01 5.17119
-#&gt; 1 parent 47.5 4.873e+01 -1.22881
+#&gt; 1 parent 53.9 4.873e+01 5.17118
+#&gt; 1 parent 47.5 4.873e+01 -1.22882
#&gt; 3 parent 10.4 1.111e+01 -0.70773
#&gt; 3 parent 7.6 1.111e+01 -3.50773
#&gt; 7 parent 1.1 5.772e-01 0.52283
@@ -273,12 +276,12 @@
#&gt; 120 parent 3.5 -2.805e-11 3.50000
#&gt; 0 M1 NA 0.000e+00 NA
#&gt; 0 M1 NA 0.000e+00 NA
-#&gt; 1 M1 36.4 3.479e+01 1.61089
-#&gt; 1 M1 37.4 3.479e+01 2.61089
+#&gt; 1 M1 36.4 3.479e+01 1.61088
+#&gt; 1 M1 37.4 3.479e+01 2.61088
#&gt; 3 M1 34.3 3.937e+01 -5.07027
#&gt; 3 M1 39.8 3.937e+01 0.42973
-#&gt; 7 M1 15.1 1.549e+01 -0.38714
-#&gt; 7 M1 17.8 1.549e+01 2.31286
+#&gt; 7 M1 15.1 1.549e+01 -0.38715
+#&gt; 7 M1 17.8 1.549e+01 2.31285
#&gt; 14 M1 5.8 1.995e+00 3.80469
#&gt; 14 M1 1.2 1.995e+00 -0.79531
#&gt; 28 M1 NA 3.034e-02 NA
@@ -295,16 +298,16 @@
#&gt; 1 M2 4.8 4.455e+00 0.34517
#&gt; 3 M2 20.9 2.153e+01 -0.62527
#&gt; 3 M2 19.3 2.153e+01 -2.22527
-#&gt; 7 M2 42.0 4.192e+01 0.07942
-#&gt; 7 M2 43.1 4.192e+01 1.17942
-#&gt; 14 M2 49.4 4.557e+01 3.83354
-#&gt; 14 M2 44.3 4.557e+01 -1.26646
+#&gt; 7 M2 42.0 4.192e+01 0.07941
+#&gt; 7 M2 43.1 4.192e+01 1.17941
+#&gt; 14 M2 49.4 4.557e+01 3.83353
+#&gt; 14 M2 44.3 4.557e+01 -1.26647
#&gt; 28 M2 34.6 3.547e+01 -0.87275
#&gt; 28 M2 33.0 3.547e+01 -2.47275
#&gt; 60 M2 18.8 1.858e+01 0.21837
#&gt; 60 M2 17.6 1.858e+01 -0.98163
-#&gt; 90 M2 10.6 1.013e+01 0.47131
-#&gt; 90 M2 10.8 1.013e+01 0.67131
+#&gt; 90 M2 10.6 1.013e+01 0.47130
+#&gt; 90 M2 10.8 1.013e+01 0.67130
#&gt; 120 M2 9.8 5.521e+00 4.27893
#&gt; 120 M2 3.3 5.521e+00 -2.22107</div><div class='input'>
</div></pre>
diff --git a/docs/reference/transform_odeparms.html b/docs/reference/transform_odeparms.html
index e1fb0437..c14740c2 100644
--- a/docs/reference/transform_odeparms.html
+++ b/docs/reference/transform_odeparms.html
@@ -25,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -70,8 +72,14 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
+<li>
+ <a href="../news/index.html">News</a>
+</li>
</ul>
<ul class="nav navbar-nav navbar-right">
@@ -102,54 +110,54 @@
simple log transformation is used. For compositional parameters, such as
the formations fractions that should always sum up to 1 and can not be
negative, the <code><a href='ilr.html'>ilr</a></code> transformation is used.</p>
-
- <p>The transformation of sets of formation fractions is fragile, as it supposes
+<p>The transformation of sets of formation fractions is fragile, as it supposes
the same ordering of the components in forward and backward transformation.
This is no problem for the internal use in <code><a href='mkinfit.html'>mkinfit</a></code>.</p>
- <pre><span class='fu'>transform_odeparms</span>(<span class='no'>parms</span>, <span class='no'>mkinmod</span>,
+ <pre class="usage"><span class='fu'>transform_odeparms</span>(<span class='no'>parms</span>, <span class='no'>mkinmod</span>,
<span class='kw'>transform_rates</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>transform_fractions</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
<span class='fu'>backtransform_odeparms</span>(<span class='no'>transparms</span>, <span class='no'>mkinmod</span>,
<span class='kw'>transform_rates</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>transform_fractions</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>parms</dt>
- <dd>
- Parameters of kinetic models as used in the differential equations.
- </dd>
- <dt>transparms</dt>
- <dd>
- Transformed parameters of kinetic models as used in the fitting procedure.
- </dd>
- <dt>mkinmod</dt>
- <dd>
- The kinetic model of class <code><a href='mkinmod.html'>mkinmod</a></code>, containing the names of
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>parms</th>
+ <td><p>Parameters of kinetic models as used in the differential equations.</p></td>
+ </tr>
+ <tr>
+ <th>transparms</th>
+ <td><p>Transformed parameters of kinetic models as used in the fitting procedure.</p></td>
+ </tr>
+ <tr>
+ <th>mkinmod</th>
+ <td><p>The kinetic model of class <code><a href='mkinmod.html'>mkinmod</a></code>, containing the names of
the model variables that are needed for grouping the formation fractions
before <code><a href='ilr.html'>ilr</a></code> transformation, the parameter names and
- the information if the pathway to sink is included in the model.
- </dd>
- <dt>transform_rates</dt>
- <dd>
- Boolean specifying if kinetic rate constants should be transformed in the
+ the information if the pathway to sink is included in the model.</p></td>
+ </tr>
+ <tr>
+ <th>transform_rates</th>
+ <td><p>Boolean specifying if kinetic rate constants should be transformed in the
model specification used in the fitting for better compliance with the
assumption of normal distribution of the estimator. If TRUE, also
alpha and beta parameters of the FOMC model are log-transformed, as well
as k1 and k2 rate constants for the DFOP and HS models and the break point tb
- of the HS model.
- </dd>
- <dt>transform_fractions</dt>
- <dd>
- Boolean specifying if formation fractions constants should be transformed in the
+ of the HS model.</p></td>
+ </tr>
+ <tr>
+ <th>transform_fractions</th>
+ <td><p>Boolean specifying if formation fractions constants should be transformed in the
model specification used in the fitting for better compliance with the
assumption of normal distribution of the estimator. The default (TRUE) is
to do transformations. The g parameter of the DFOP and HS models are also
transformed, as they can also be seen as compositional data. The
transformation used for these transformations is the <code><a href='ilr.html'>ilr</a></code>
- transformation.
- </dd>
- </dl>
+ transformation.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -162,10 +170,10 @@
<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>, <span class='kw'>to</span> <span class='kw'>=</span> <span class='st'>"m1"</span>, <span class='kw'>sink</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>),
<span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</span> <span class='st'>"SFO"</span>))</div><div class='output co'>#&gt; <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='no'>fit</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>fit</span>, <span class='kw'>data</span><span class='kw'>=</span><span class='fl'>FALSE</span>) <span class='co'># See transformed and backtransformed parameters</span></div><div class='output co'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:57:59 2016
-#&gt; Date of summary: Thu Dec 8 07:57:59 2016
+<span class='fu'>summary</span>(<span class='no'>fit</span>, <span class='kw'>data</span><span class='kw'>=</span><span class='fl'>FALSE</span>) <span class='co'># See transformed and backtransformed parameters</span></div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:24 2017
+#&gt; Date of summary: Fri May 5 12:46:24 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent_sink * parent - k_parent_m1 * parent
@@ -173,7 +181,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 153 model solutions performed in 0.621 s
+#&gt; Fitted with method Port using 153 model solutions performed in 0.61 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -207,7 +215,7 @@
#&gt; parent_0 1.00000 0.6075 -0.06625 -0.1701
#&gt; log_k_parent_sink 0.60752 1.0000 -0.08740 -0.6253
#&gt; log_k_parent_m1 -0.06625 -0.0874 1.00000 0.4716
-#&gt; log_k_m1_sink -0.17006 -0.6253 0.47163 1.0000
+#&gt; log_k_m1_sink -0.17006 -0.6253 0.47164 1.0000
#&gt;
#&gt; Residual standard error: 3.211 on 36 degrees of freedom
#&gt;
@@ -239,10 +247,10 @@
#&gt; m1 131.761 437.70</div><div class='input'>
<span class='no'>fit.2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>transform_rates</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>fit.2</span>, <span class='kw'>data</span><span class='kw'>=</span><span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:58:01 2016
-#&gt; Date of summary: Thu Dec 8 07:58:01 2016
+<span class='fu'>summary</span>(<span class='no'>fit.2</span>, <span class='kw'>data</span><span class='kw'>=</span><span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:26 2017
+#&gt; Date of summary: Fri May 5 12:46:26 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent_sink * parent - k_parent_m1 * parent
@@ -250,7 +258,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 327 model solutions performed in 1.419 s
+#&gt; Fitted with method Port using 352 model solutions performed in 1.437 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -329,10 +337,10 @@
<span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='kw'>type</span> <span class='kw'>=</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'>#&gt; <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'>
<span class='no'>fit.ff</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></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>)
-<span class='fu'>summary</span>(<span class='no'>fit.ff</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:58:02 2016
-#&gt; Date of summary: Thu Dec 8 07:58:02 2016
+<span class='fu'>summary</span>(<span class='no'>fit.ff</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:27 2017
+#&gt; Date of summary: Fri May 5 12:46:27 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -340,7 +348,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 185 model solutions performed in 0.814 s
+#&gt; Fitted with method Port using 185 model solutions performed in 0.776 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -413,10 +421,10 @@
<span class='kw'>use_of_ff</span> <span class='kw'>=</span> <span class='st'>"max"</span>)</div><div class='output co'>#&gt; <span class='message'>Successfully compiled differential equation model from auto-generated C code.</span></div><div class='input'>
<span class='no'>fit.ff.2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>SFO_SFO.ff.2</span>, <span class='no'>FOCUS_2006_D</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
-<span class='fu'>summary</span>(<span class='no'>fit.ff.2</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.44.9000
-#&gt; R version: 3.3.2
-#&gt; Date of fit: Thu Dec 8 07:58:03 2016
-#&gt; Date of summary: Thu Dec 8 07:58:03 2016
+<span class='fu'>summary</span>(<span class='no'>fit.ff.2</span>, <span class='kw'>data</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</div><div class='output co'>#&gt; mkin version: 0.9.45.2
+#&gt; R version: 3.4.0
+#&gt; Date of fit: Fri May 5 12:46:28 2017
+#&gt; Date of summary: Fri May 5 12:46:28 2017
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -424,7 +432,7 @@
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method Port using 104 model solutions performed in 0.436 s
+#&gt; Fitted with method Port using 104 model solutions performed in 0.433 s
#&gt;
#&gt; Weighting: none
#&gt;
@@ -463,7 +471,7 @@
#&gt; t-test (unrealistically) based on the assumption of normal distribution
#&gt; for estimators of untransformed parameters.
#&gt; Estimate t value Pr(&gt;t) Lower Upper
-#&gt; parent_0 84.79000 28.600 3.939e-27 78.78000 90.80000
+#&gt; parent_0 84.79000 28.600 3.938e-27 78.78000 90.80000
#&gt; k_parent 0.06352 12.360 5.237e-15 0.05392 0.07483
#&gt; k_m1 0.01478 8.966 4.114e-11 0.01179 0.01853
#&gt;
diff --git a/docs/reference/twa.html b/docs/reference/twa.html
index 06a501a6..be76b439 100644
--- a/docs/reference/twa.html
+++ b/docs/reference/twa.html
@@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- — twa • mkin</title>
+<title>Function to calculate maximum time weighted average concentrations from kinetic models fitted with mkinfit — twa • mkin</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@@ -26,12 +25,14 @@
<script src="../pkgdown.js"></script>
<!-- mathjax -->
-<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
+<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+
+
</head>
<body>
@@ -71,6 +72,9 @@
<li>
<a href="../articles/compiled_models.html">Performance benefit by using compiled model definitions in mkin</a>
</li>
+ <li>
+ <a href="../articles/twa.html">Calculation of time weighted average concentrations with mkin</a>
+ </li>
</ul>
</li>
<li>
@@ -96,8 +100,7 @@
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
- <h1>
-</h1>
+ <h1>Function to calculate maximum time weighted average concentrations from kinetic models fitted with mkinfit</h1>
</div>
@@ -108,19 +111,20 @@ using the analytical formulas given in the PEC soil section of the FOCUS
guidance.</p>
- <pre><span class='fu'>twa</span>(<span class='no'>fit</span>, <span class='no'>windows</span>)</pre>
+ <pre class="usage"><span class='fu'>twa</span>(<span class='no'>fit</span>, <span class='no'>windows</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
- <dl class="dl-horizontal">
- <dt>fit</dt>
- <dd>
- An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.
- </dd>
- <dt>windows</dt>
- <dd>
- The width of the time windows for which the TWAs should be calculated.
- </dd>
- </dl>
+ <table class="ref-arguments">
+ <colgroup><col class="name" /><col class="desc" /></colgroup>
+ <tr>
+ <th>fit</th>
+ <td><p>An object of class <code><a href='mkinfit.html'>mkinfit</a></code>.</p></td>
+ </tr>
+ <tr>
+ <th>windows</th>
+ <td><p>The width of the time windows for which the TWAs should be calculated.</p></td>
+ </tr>
+ </table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
@@ -132,7 +136,7 @@ guidance.</p>
Degradation Kinetics from Environmental Fate Studies on Pesticides in EU
Registration&#8221; Report of the FOCUS Work Group on Degradation Kinetics,
EC Document Reference Sanco/10058/2005 version 2.0, 434 pp,
- <a href = 'http://http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics'>http://http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics</a></p>
+ <a href = 'http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics'>http://esdac.jrc.ec.europa.eu/projects/degradation-kinetics</a></p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>

Contact - Imprint