aboutsummaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-05-02 13:17:05 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-05-02 13:17:05 +0200
commit70591022c07f0e8fb4dd67789b7c8d78af8ebc18 (patch)
treeacaecfce5ae304cfc48b111c6db24a3f2ed5c83d /docs/reference
parent380a29e81f88cd80c9c6915200ddc7054c8a085a (diff)
Better initials for error model parameters
- Also make it possible to specify initial values for error model parameters. - Run tests - Rebuild docs
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/AIC.mmkin.html4
-rw-r--r--docs/reference/Extract.mmkin.html2
-rw-r--r--docs/reference/NAFTA_SOP_2015-1.pngbin41450 -> 41438 bytes
-rw-r--r--docs/reference/NAFTA_SOP_2015.html2
-rw-r--r--docs/reference/NAFTA_SOP_Attachment-1.pngbin42277 -> 42265 bytes
-rw-r--r--docs/reference/NAFTA_SOP_Attachment.html2
-rw-r--r--docs/reference/add_err-1.pngbin89854 -> 89823 bytes
-rw-r--r--docs/reference/add_err-3.pngbin52620 -> 52617 bytes
-rw-r--r--docs/reference/mccall81_245T.html20
-rw-r--r--docs/reference/mkinfit.html226
-rw-r--r--docs/reference/mkinmod.html2
-rw-r--r--docs/reference/mkinparplot-1.pngbin16555 -> 16555 bytes
-rw-r--r--docs/reference/mkinpredict.html56
-rw-r--r--docs/reference/mmkin-1.pngbin97714 -> 97607 bytes
-rw-r--r--docs/reference/mmkin-2.pngbin88254 -> 88227 bytes
-rw-r--r--docs/reference/mmkin-3.pngbin85751 -> 85742 bytes
-rw-r--r--docs/reference/mmkin-4.pngbin63345 -> 63315 bytes
-rw-r--r--docs/reference/mmkin-5.pngbin57629 -> 57623 bytes
-rw-r--r--docs/reference/mmkin.html4
-rw-r--r--docs/reference/nafta-1.pngbin41450 -> 41438 bytes
-rw-r--r--docs/reference/nafta.html2
-rw-r--r--docs/reference/plot.mkinfit-3.pngbin43743 -> 43718 bytes
-rw-r--r--docs/reference/plot.mkinfit-4.pngbin59806 -> 59800 bytes
-rw-r--r--docs/reference/plot.mmkin-1.pngbin34400 -> 34389 bytes
-rw-r--r--docs/reference/plot.mmkin-2.pngbin34840 -> 34829 bytes
-rw-r--r--docs/reference/plot.mmkin-3.pngbin25445 -> 25441 bytes
-rw-r--r--docs/reference/schaefer07_complex_case.html10
-rw-r--r--docs/reference/summary.mkinfit.html12
-rw-r--r--docs/reference/test_data_from_UBA_2014-1.pngbin53400 -> 53388 bytes
-rw-r--r--docs/reference/test_data_from_UBA_2014-2.pngbin69202 -> 69105 bytes
-rw-r--r--docs/reference/test_data_from_UBA_2014.html16
31 files changed, 183 insertions, 175 deletions
diff --git a/docs/reference/AIC.mmkin.html b/docs/reference/AIC.mmkin.html
index d5386145..c797567c 100644
--- a/docs/reference/AIC.mmkin.html
+++ b/docs/reference/AIC.mmkin.html
@@ -169,10 +169,10 @@
<span class='co'># of parameters, the higher (worse) the AIC</span>
<span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/AIC'>AIC</a></span>(<span class='no'>f</span>[, <span class='st'>"FOCUS A"</span>])</div><div class='output co'>#&gt; df AIC
#&gt; SFO 3 55.28197
-#&gt; FOMC 4 57.28198
+#&gt; FOMC 4 57.28202
#&gt; DFOP 5 59.28197</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/AIC'>AIC</a></span>(<span class='no'>f</span>[, <span class='st'>"FOCUS A"</span>], <span class='kw'>k</span> <span class='kw'>=</span> <span class='fl'>0</span>) <span class='co'># If we do not penalize additional parameters, we get nearly the same</span></div><div class='output co'>#&gt; df AIC
#&gt; SFO 3 49.28197
-#&gt; FOMC 4 49.28198
+#&gt; FOMC 4 49.28202
#&gt; DFOP 5 49.28197</div><div class='input'>
<span class='co'># For FOCUS C, the more complex models fit better</span>
<span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/AIC'>AIC</a></span>(<span class='no'>f</span>[, <span class='st'>"FOCUS C"</span>])</div><div class='output co'>#&gt; df AIC
diff --git a/docs/reference/Extract.mmkin.html b/docs/reference/Extract.mmkin.html
index 77eff52e..3b7209b1 100644
--- a/docs/reference/Extract.mmkin.html
+++ b/docs/reference/Extract.mmkin.html
@@ -189,7 +189,7 @@
<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 sigma
-#&gt; 99.666193 2.549849 5.050586 1.890202
+#&gt; 99.666193 2.549850 5.050586 1.890202
#&gt;
#&gt; $objective
#&gt; [1] 28.58291
diff --git a/docs/reference/NAFTA_SOP_2015-1.png b/docs/reference/NAFTA_SOP_2015-1.png
index c4f9f048..bcf5d12c 100644
--- a/docs/reference/NAFTA_SOP_2015-1.png
+++ b/docs/reference/NAFTA_SOP_2015-1.png
Binary files differ
diff --git a/docs/reference/NAFTA_SOP_2015.html b/docs/reference/NAFTA_SOP_2015.html
index 513cb128..84341a17 100644
--- a/docs/reference/NAFTA_SOP_2015.html
+++ b/docs/reference/NAFTA_SOP_2015.html
@@ -192,7 +192,7 @@
#&gt; DFOP 429 2380 841
#&gt;
#&gt; Representative half-life:
-#&gt; [1] 841.4094</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_evaluation</span>)</div><div class='img'><img src='NAFTA_SOP_2015-1.png' alt='' width='700' height='433' /></div></pre>
+#&gt; [1] 841.41</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_evaluation</span>)</div><div class='img'><img src='NAFTA_SOP_2015-1.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
diff --git a/docs/reference/NAFTA_SOP_Attachment-1.png b/docs/reference/NAFTA_SOP_Attachment-1.png
index 7c6c723f..87068d7c 100644
--- a/docs/reference/NAFTA_SOP_Attachment-1.png
+++ b/docs/reference/NAFTA_SOP_Attachment-1.png
Binary files differ
diff --git a/docs/reference/NAFTA_SOP_Attachment.html b/docs/reference/NAFTA_SOP_Attachment.html
index ead06a54..48a1495f 100644
--- a/docs/reference/NAFTA_SOP_Attachment.html
+++ b/docs/reference/NAFTA_SOP_Attachment.html
@@ -189,7 +189,7 @@
#&gt; DFOP 55.5 3.70e+11 2.03e+11
#&gt;
#&gt; Representative half-life:
-#&gt; [1] 321.5119</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_att_p5a</span>)</div><div class='img'><img src='NAFTA_SOP_Attachment-1.png' alt='' width='700' height='433' /></div></pre>
+#&gt; [1] 321.51</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_att_p5a</span>)</div><div class='img'><img src='NAFTA_SOP_Attachment-1.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
diff --git a/docs/reference/add_err-1.png b/docs/reference/add_err-1.png
index e2107cc2..2f60fdf7 100644
--- a/docs/reference/add_err-1.png
+++ b/docs/reference/add_err-1.png
Binary files differ
diff --git a/docs/reference/add_err-3.png b/docs/reference/add_err-3.png
index 6e6592a5..06f877c2 100644
--- a/docs/reference/add_err-3.png
+++ b/docs/reference/add_err-3.png
Binary files differ
diff --git a/docs/reference/mccall81_245T.html b/docs/reference/mccall81_245T.html
index a336a840..1f0f6b50 100644
--- a/docs/reference/mccall81_245T.html
+++ b/docs/reference/mccall81_245T.html
@@ -160,14 +160,14 @@
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<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'><a href='https://www.rdocumentation.org/packages/base/topics/list'>list</a></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'><a href='https://www.rdocumentation.org/packages/base/topics/list'>list</a></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'><a href='https://www.rdocumentation.org/packages/base/topics/list'>list</a></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'> </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'><a href='https://www.rdocumentation.org/packages/base/topics/subset'>subset</a></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: Observations with value of zero were removed from the data</span></div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>fit.1</span>)$<span class='no'>bpar</span></div><div class='output co'>#&gt; <span class='warning'>Warning: NaNs wurden erzeugt</span></div><div class='output co'>#&gt; Estimate se_notrans t value Pr(&gt;t) Lower
-#&gt; T245_0 1.038550e+02 2.1508106806 48.286460 3.542223e-18 99.246062186
-#&gt; k_T245_sink 1.636106e-02 NaN NaN NaN 0.012661557
-#&gt; k_T245_phenol 2.700936e-02 NaN NaN NaN 0.024487315
-#&gt; k_phenol_sink 1.054519e-10 NaN NaN NaN 0.000000000
-#&gt; k_phenol_anisole 4.050581e-01 0.1053797258 3.843795 7.969973e-04 0.218013983
-#&gt; k_anisole_sink 6.678742e-03 0.0006205825 10.762053 9.427693e-09 0.005370739
-#&gt; sigma 2.514628e+00 0.3383657682 7.431685 1.054052e-06 1.706607296
+ <span class='kw'>anisole</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/list'>list</a></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'> </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'><a href='https://www.rdocumentation.org/packages/base/topics/subset'>subset</a></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: Observations with value of zero were removed from the data</span></div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>fit.1</span>)$<span class='no'>bpar</span></div><div class='output co'>#&gt; <span class='warning'>Warning: NaNs wurden erzeugt</span></div><div class='output co'>#&gt; Estimate se_notrans t value Pr(&gt;t) Lower
+#&gt; T245_0 1.038550e+02 2.150809526 48.286486 3.542195e-18 99.246062243
+#&gt; k_T245_sink 1.636106e-02 NaN NaN NaN 0.012661558
+#&gt; k_T245_phenol 2.700936e-02 NaN NaN NaN 0.024487315
+#&gt; k_phenol_sink 1.187912e-10 NaN NaN NaN 0.000000000
+#&gt; k_phenol_anisole 4.050581e-01 0.105378416 3.843843 7.969195e-04 0.218013983
+#&gt; k_anisole_sink 6.678742e-03 0.000620576 10.762166 9.426361e-09 0.005370739
+#&gt; sigma 2.514628e+00 0.338361458 7.431780 1.053891e-06 1.706607296
#&gt; Upper
#&gt; T245_0 1.084640e+02
#&gt; k_T245_sink 2.114150e-02
@@ -177,7 +177,7 @@
#&gt; k_anisole_sink 8.305299e-03
#&gt; sigma 3.322649e+00</div><div class='input'> <span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.1</span>)</div><div class='output co'>#&gt; $ff
#&gt; T245_sink T245_phenol phenol_sink phenol_anisole anisole_sink
-#&gt; 3.772401e-01 6.227599e-01 2.603376e-10 1.000000e+00 1.000000e+00
+#&gt; 3.772401e-01 6.227599e-01 2.932696e-10 1.000000e+00 1.000000e+00
#&gt;
#&gt; $SFORB
#&gt; logical(0)
@@ -205,7 +205,7 @@
#&gt; k_anisole_sink 8.295501e-03
#&gt; sigma 3.318272e+00</div><div class='input'> <span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.1</span>)</div><div class='output co'>#&gt; $ff
#&gt; T245_sink T245_phenol phenol_sink phenol_anisole anisole_sink
-#&gt; 3.772401e-01 6.227599e-01 2.603376e-10 1.000000e+00 1.000000e+00
+#&gt; 3.772401e-01 6.227599e-01 2.932696e-10 1.000000e+00 1.000000e+00
#&gt;
#&gt; $SFORB
#&gt; logical(0)
diff --git a/docs/reference/mkinfit.html b/docs/reference/mkinfit.html
index d3a826b9..7693287e 100644
--- a/docs/reference/mkinfit.html
+++ b/docs/reference/mkinfit.html
@@ -151,6 +151,7 @@ Per default, parameters in the kinetic models are internally transformed in
<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'>err.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'><a href='https://www.rdocumentation.org/packages/base/topics/names'>names</a></span>(<span class='no'>mkinmod</span>$<span class='no'>diffs</span>)[-<span class='fl'>1</span>],
<span class='kw'>from_max_mean</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"auto"</span>, <span class='st'>"analytical"</span>, <span class='st'>"eigen"</span>, <span class='st'>"deSolve"</span>),
@@ -210,6 +211,13 @@ Per default, parameters in the kinetic models are internally transformed in
If this variable has no time zero observations, its initial value is set to 100.</p></td>
</tr>
<tr>
+ <th>err.ini</th>
+ <td><p>A named vector of initial values for the error model parameters to be
+ optimised. If set to "auto", initial values are set to default values.
+ Otherwise, inital values for all error model parameters must be
+ given.</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>
@@ -353,19 +361,19 @@ Per default, parameters in the kinetic models are internally transformed in
<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'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; mkin version used for fitting: 0.9.49.4
-#&gt; R version used for fitting: 3.5.3
-#&gt; Date of fit: Wed Apr 10 10:10:01 2019
-#&gt; Date of summary: Wed Apr 10 10:10:01 2019
+#&gt; R version used for fitting: 3.6.0
+#&gt; Date of fit: Thu May 2 12:38:56 2019
+#&gt; Date of summary: Thu May 2 12:38:56 2019
#&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 using 221 model solutions performed in 0.508 s
+#&gt; Fitted using 221 model solutions performed in 0.455 s
#&gt;
#&gt; Error model:
-#&gt; NULL
+#&gt; Constant variance
#&gt;
#&gt; Starting values for parameters to be optimised:
#&gt; value type
@@ -393,10 +401,10 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt;
#&gt; Parameter correlation:
#&gt; parent_0 log_alpha log_beta sigma
-#&gt; parent_0 1.000e+00 -1.565e-01 -3.142e-01 -1.313e-07
-#&gt; log_alpha -1.565e-01 1.000e+00 9.564e-01 -2.634e-07
-#&gt; log_beta -3.142e-01 9.564e-01 1.000e+00 -2.200e-07
-#&gt; sigma -1.313e-07 -2.634e-07 -2.200e-07 1.000e+00
+#&gt; parent_0 1.000e+00 -1.565e-01 -3.142e-01 -1.317e-07
+#&gt; log_alpha -1.565e-01 1.000e+00 9.564e-01 -2.640e-07
+#&gt; log_beta -3.142e-01 9.564e-01 1.000e+00 -2.205e-07
+#&gt; sigma -1.317e-07 -2.640e-07 -2.205e-07 1.000e+00
#&gt;
#&gt; Backtransformed parameters:
#&gt; Confidence intervals for internally transformed parameters are asymmetric.
@@ -408,7 +416,7 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; beta 1.917 4.373 3.601e-03 1.0650 3.451
#&gt; sigma 1.857 4.243 4.074e-03 0.7320 2.983
#&gt;
-#&gt; Chi2 error levels in percent:
+#&gt; FOCUS Chi2 error levels in percent:
#&gt; err.min n.optim df
#&gt; All data 6.657 3 6
#&gt; parent 6.657 3 6
@@ -435,7 +443,7 @@ Per default, parameters in the kinetic models are internally transformed in
<span class='kw'>m1</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>))</div><div class='output co'>#&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'><a href='https://www.rdocumentation.org/packages/base/topics/print'>print</a></span>(<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/system.time'>system.time</a></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; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='output co'>#&gt; User System verstrichen
-#&gt; 1.653 0.000 1.653 </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/coef'>coef</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; $ff
+#&gt; 1.551 0.000 1.552 </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/coef'>coef</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit</span>)</div><div class='output co'>#&gt; $ff
#&gt; parent_sink parent_m1 m1_sink
#&gt; 0.485524 0.514476 1.000000
#&gt;
@@ -448,71 +456,71 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; m1 131.760715 437.69962
#&gt; </div><div class='input'><span class='co'># deSolve is slower when no C compiler (gcc) was available during model generation</span>
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/print'>print</a></span>(<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/system.time'>system.time</a></span>(<span class='no'>fit.deSolve</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'>"deSolve"</span>)))</div><div class='output co'>#&gt; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='output co'>#&gt; Negative log-likelihood at call 1: 18915.53
-#&gt; Negative log-likelihood at call 2: 18915.53
-#&gt; Negative log-likelihood at call 6: 11424.02
-#&gt; Negative log-likelihood at call 10: 11424
-#&gt; Negative log-likelihood at call 13: 2367.052
-#&gt; Negative log-likelihood at call 14: 2367.05
-#&gt; Negative log-likelihood at call 19: 1314.716
-#&gt; Negative log-likelihood at call 22: 1314.714
-#&gt; Negative log-likelihood at call 25: 991.8311
-#&gt; Negative log-likelihood at call 28: 991.8305
-#&gt; Negative log-likelihood at call 30: 893.6462
-#&gt; Negative log-likelihood at call 33: 893.6457
-#&gt; Negative log-likelihood at call 35: 569.4049
-#&gt; Negative log-likelihood at call 38: 569.4047
-#&gt; Negative log-likelihood at call 40: 565.0651
-#&gt; Negative log-likelihood at call 41: 565.065
-#&gt; Negative log-likelihood at call 42: 565.0637
-#&gt; Negative log-likelihood at call 45: 428.0188
-#&gt; Negative log-likelihood at call 46: 428.0185
-#&gt; Negative log-likelihood at call 50: 406.732
-#&gt; Negative log-likelihood at call 52: 406.732
-#&gt; Negative log-likelihood at call 55: 398.9115
-#&gt; Negative log-likelihood at call 57: 398.9113
-#&gt; Negative log-likelihood at call 60: 394.5943
-#&gt; Negative log-likelihood at call 62: 394.5943
-#&gt; Negative log-likelihood at call 66: 385.26
-#&gt; Negative log-likelihood at call 67: 385.2599
-#&gt; Negative log-likelihood at call 69: 385.2599
-#&gt; Negative log-likelihood at call 70: 385.2597
-#&gt; Negative log-likelihood at call 71: 374.7604
-#&gt; Negative log-likelihood at call 72: 374.7603
-#&gt; Negative log-likelihood at call 76: 373.199
-#&gt; Negative log-likelihood at call 79: 373.199
-#&gt; Negative log-likelihood at call 80: 373.199
-#&gt; Negative log-likelihood at call 81: 372.3772
-#&gt; Negative log-likelihood at call 84: 372.3772
-#&gt; Negative log-likelihood at call 86: 371.2615
-#&gt; Negative log-likelihood at call 89: 371.2615
-#&gt; Negative log-likelihood at call 90: 371.2615
-#&gt; Negative log-likelihood at call 92: 371.2439
-#&gt; Negative log-likelihood at call 93: 371.2439
-#&gt; Negative log-likelihood at call 94: 371.2439
-#&gt; Negative log-likelihood at call 97: 371.2198
-#&gt; Negative log-likelihood at call 98: 371.2198
-#&gt; Negative log-likelihood at call 102: 371.2174
-#&gt; Negative log-likelihood at call 104: 371.2174
-#&gt; Negative log-likelihood at call 107: 371.2147
-#&gt; Negative log-likelihood at call 110: 371.2147
-#&gt; Negative log-likelihood at call 111: 371.2147
-#&gt; Negative log-likelihood at call 112: 371.2145
-#&gt; Negative log-likelihood at call 113: 371.2145
-#&gt; Negative log-likelihood at call 116: 371.2145
-#&gt; Negative log-likelihood at call 119: 371.2135
-#&gt; Negative log-likelihood at call 121: 371.2135
-#&gt; Negative log-likelihood at call 124: 371.2135
-#&gt; Negative log-likelihood at call 126: 371.2135
-#&gt; Negative log-likelihood at call 127: 371.2135
-#&gt; Negative log-likelihood at call 133: 371.2134
-#&gt; Negative log-likelihood at call 135: 371.2134
-#&gt; Negative log-likelihood at call 138: 371.2134
-#&gt; Negative log-likelihood at call 142: 371.2134
+ <span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>)))</div><div class='output co'>#&gt; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='output co'>#&gt; Sum of squared residuals at call 1: 18915.53
+#&gt; Sum of squared residuals at call 2: 18915.53
+#&gt; Sum of squared residuals at call 6: 11424.02
+#&gt; Sum of squared residuals at call 10: 11424
+#&gt; Sum of squared residuals at call 13: 2367.052
+#&gt; Sum of squared residuals at call 14: 2367.05
+#&gt; Sum of squared residuals at call 19: 1314.716
+#&gt; Sum of squared residuals at call 22: 1314.714
+#&gt; Sum of squared residuals at call 25: 991.8311
+#&gt; Sum of squared residuals at call 28: 991.8305
+#&gt; Sum of squared residuals at call 30: 893.6462
+#&gt; Sum of squared residuals at call 33: 893.6457
+#&gt; Sum of squared residuals at call 35: 569.4049
+#&gt; Sum of squared residuals at call 38: 569.4047
+#&gt; Sum of squared residuals at call 40: 565.0651
+#&gt; Sum of squared residuals at call 41: 565.065
+#&gt; Sum of squared residuals at call 42: 565.0637
+#&gt; Sum of squared residuals at call 45: 428.0188
+#&gt; Sum of squared residuals at call 46: 428.0185
+#&gt; Sum of squared residuals at call 50: 406.732
+#&gt; Sum of squared residuals at call 52: 406.732
+#&gt; Sum of squared residuals at call 55: 398.9115
+#&gt; Sum of squared residuals at call 57: 398.9113
+#&gt; Sum of squared residuals at call 60: 394.5943
+#&gt; Sum of squared residuals at call 62: 394.5943
+#&gt; Sum of squared residuals at call 66: 385.26
+#&gt; Sum of squared residuals at call 67: 385.2599
+#&gt; Sum of squared residuals at call 69: 385.2599
+#&gt; Sum of squared residuals at call 70: 385.2597
+#&gt; Sum of squared residuals at call 71: 374.7604
+#&gt; Sum of squared residuals at call 72: 374.7603
+#&gt; Sum of squared residuals at call 76: 373.199
+#&gt; Sum of squared residuals at call 79: 373.199
+#&gt; Sum of squared residuals at call 80: 373.199
+#&gt; Sum of squared residuals at call 81: 372.3772
+#&gt; Sum of squared residuals at call 84: 372.3772
+#&gt; Sum of squared residuals at call 86: 371.2615
+#&gt; Sum of squared residuals at call 89: 371.2615
+#&gt; Sum of squared residuals at call 90: 371.2615
+#&gt; Sum of squared residuals at call 92: 371.2439
+#&gt; Sum of squared residuals at call 93: 371.2439
+#&gt; Sum of squared residuals at call 94: 371.2439
+#&gt; Sum of squared residuals at call 97: 371.2198
+#&gt; Sum of squared residuals at call 98: 371.2198
+#&gt; Sum of squared residuals at call 102: 371.2174
+#&gt; Sum of squared residuals at call 104: 371.2174
+#&gt; Sum of squared residuals at call 107: 371.2147
+#&gt; Sum of squared residuals at call 110: 371.2147
+#&gt; Sum of squared residuals at call 111: 371.2147
+#&gt; Sum of squared residuals at call 112: 371.2145
+#&gt; Sum of squared residuals at call 113: 371.2145
+#&gt; Sum of squared residuals at call 116: 371.2145
+#&gt; Sum of squared residuals at call 119: 371.2135
+#&gt; Sum of squared residuals at call 121: 371.2135
+#&gt; Sum of squared residuals at call 124: 371.2135
+#&gt; Sum of squared residuals at call 126: 371.2135
+#&gt; Sum of squared residuals at call 127: 371.2135
+#&gt; Sum of squared residuals at call 133: 371.2134
+#&gt; Sum of squared residuals at call 135: 371.2134
+#&gt; Sum of squared residuals at call 138: 371.2134
+#&gt; Sum of squared residuals at call 142: 371.2134
#&gt; Negative log-likelihood at call 152: 97.22429
#&gt; Optimisation successfully terminated.
#&gt; User System verstrichen
-#&gt; 1.136 0.000 1.135 </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/coef'>coef</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; $ff
+#&gt; 1.152 0.000 1.153 </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/stats/topics/coef'>coef</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; NULL</div><div class='input'><span class='fu'><a href='endpoints.html'>endpoints</a></span>(<span class='no'>fit.deSolve</span>)</div><div class='output co'>#&gt; $ff
#&gt; parent_sink parent_m1 m1_sink
#&gt; 0.485524 0.514476 1.000000
#&gt;
@@ -543,9 +551,9 @@ Per default, parameters in the kinetic models are internally transformed in
</div><div class='input'><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>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>f.noweight</span>)</div><div class='output co'>#&gt; mkin version used for fitting: 0.9.49.4
-#&gt; R version used for fitting: 3.5.3
-#&gt; Date of fit: Wed Apr 10 10:10:17 2019
-#&gt; Date of summary: Wed Apr 10 10:10:17 2019
+#&gt; R version used for fitting: 3.6.0
+#&gt; Date of fit: Thu May 2 12:39:13 2019
+#&gt; Date of summary: Thu May 2 12:39:13 2019
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -553,10 +561,10 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method using 404 model solutions performed in 1.105 s
+#&gt; Fitted using 404 model solutions performed in 1.178 s
#&gt;
#&gt; Error model:
-#&gt; NULL
+#&gt; Constant variance
#&gt;
#&gt; Starting values for parameters to be optimised:
#&gt; value type
@@ -605,7 +613,7 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; f_parent_to_m1 0.514500 23.070 3.104e-22 0.469100 5.596e-01
#&gt; sigma 3.126000 8.718 2.235e-10 2.396000 3.855e+00
#&gt;
-#&gt; Chi2 error levels in percent:
+#&gt; FOCUS Chi2 error levels in percent:
#&gt; err.min n.optim df
#&gt; All data 6.398 4 15
#&gt; parent 6.459 2 7
@@ -661,9 +669,9 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; 100 m1 33.13 31.98163 1.148e+00
#&gt; 120 m1 25.15 28.78984 -3.640e+00
#&gt; 120 m1 33.31 28.78984 4.520e+00</div><div class='input'><span class='no'>f.obs</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'>error_model</span> <span class='kw'>=</span> <span class='st'>"obs"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>f.obs</span>)</div><div class='output co'>#&gt; mkin version used for fitting: 0.9.49.4
-#&gt; R version used for fitting: 3.5.3
-#&gt; Date of fit: Wed Apr 10 10:10:19 2019
-#&gt; Date of summary: Wed Apr 10 10:10:19 2019
+#&gt; R version used for fitting: 3.6.0
+#&gt; Date of fit: Thu May 2 12:39:14 2019
+#&gt; Date of summary: Thu May 2 12:39:14 2019
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -671,10 +679,10 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method using 558 model solutions performed in 1.602 s
+#&gt; Fitted using 558 model solutions performed in 1.518 s
#&gt;
#&gt; Error model:
-#&gt; NULL
+#&gt; Variance unique to each observed variable
#&gt;
#&gt; Starting values for parameters to be optimised:
#&gt; value type
@@ -735,7 +743,7 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; sigma_parent 3.401000 5.985 5.662e-07 2.244000 4.559e+00
#&gt; sigma_m1 2.855000 6.311 2.215e-07 1.934000 3.777e+00
#&gt;
-#&gt; Chi2 error levels in percent:
+#&gt; FOCUS Chi2 error levels in percent:
#&gt; err.min n.optim df
#&gt; All data 6.398 4 15
#&gt; parent 6.464 2 7
@@ -791,9 +799,9 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; 100 m1 33.13 31.98774 1.142e+00
#&gt; 120 m1 25.15 28.80430 -3.654e+00
#&gt; 120 m1 33.31 28.80430 4.506e+00</div><div class='input'><span class='no'>f.tc</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'>error_model</span> <span class='kw'>=</span> <span class='st'>"tc"</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Observations with value of zero were removed from the data</span></div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>f.tc</span>)</div><div class='output co'>#&gt; mkin version used for fitting: 0.9.49.4
-#&gt; R version used for fitting: 3.5.3
-#&gt; Date of fit: Wed Apr 10 10:10:22 2019
-#&gt; Date of summary: Wed Apr 10 10:10:22 2019
+#&gt; R version used for fitting: 3.6.0
+#&gt; Date of fit: Thu May 2 12:39:18 2019
+#&gt; Date of summary: Thu May 2 12:39:18 2019
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent * parent
@@ -801,10 +809,10 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt;
#&gt; Model predictions using solution type deSolve
#&gt;
-#&gt; Fitted with method using 756 model solutions performed in 3.222 s
+#&gt; Fitted using 844 model solutions performed in 3.501 s
#&gt;
#&gt; Error model:
-#&gt; NULL
+#&gt; Two-component variance function
#&gt;
#&gt; Starting values for parameters to be optimised:
#&gt; value type
@@ -812,8 +820,8 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; k_parent 0.1000 deparm
#&gt; k_m1 0.1001 deparm
#&gt; f_parent_to_m1 0.5000 deparm
-#&gt; sigma_low 0.5000 error
-#&gt; rsd_high 0.0700 error
+#&gt; sigma_low 3.0000 error
+#&gt; rsd_high 0.0100 error
#&gt;
#&gt; Starting values for the transformed parameters actually optimised:
#&gt; value lower upper
@@ -821,8 +829,8 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; log_k_parent -2.302585 -Inf Inf
#&gt; log_k_m1 -2.301586 -Inf Inf
#&gt; f_parent_ilr_1 0.000000 -Inf Inf
-#&gt; sigma_low 0.500000 0 Inf
-#&gt; rsd_high 0.070000 0 Inf
+#&gt; sigma_low 3.000000 0 Inf
+#&gt; rsd_high 0.010000 0 Inf
#&gt;
#&gt; Fixed parameter values:
#&gt; value type
@@ -858,7 +866,7 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; sigma_low 3.050e-03 0.6314 2.661e-01 -0.006786 1.289e-02
#&gt; rsd_high 7.928e-02 8.4170 6.418e-10 0.060100 9.847e-02
#&gt;
-#&gt; Chi2 error levels in percent:
+#&gt; FOCUS Chi2 error levels in percent:
#&gt; err.min n.optim df
#&gt; All data 6.475 4 15
#&gt; parent 6.573 2 7
@@ -876,18 +884,18 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt;
#&gt; Data:
#&gt; time variable observed predicted residual
-#&gt; 0 parent 99.46 100.73434 -1.274340
-#&gt; 0 parent 102.04 100.73434 1.305660
+#&gt; 0 parent 99.46 100.73434 -1.274339
+#&gt; 0 parent 102.04 100.73434 1.305661
#&gt; 1 parent 93.50 91.09751 2.402486
#&gt; 1 parent 92.50 91.09751 1.402486
#&gt; 3 parent 63.23 74.50141 -11.271410
#&gt; 3 parent 68.99 74.50141 -5.511410
-#&gt; 7 parent 52.32 49.82880 2.491200
-#&gt; 7 parent 55.13 49.82880 5.301200
+#&gt; 7 parent 52.32 49.82880 2.491201
+#&gt; 7 parent 55.13 49.82880 5.301201
#&gt; 14 parent 27.27 24.64809 2.621908
#&gt; 14 parent 26.64 24.64809 1.991908
-#&gt; 21 parent 11.50 12.19232 -0.692316
-#&gt; 21 parent 11.64 12.19232 -0.552316
+#&gt; 21 parent 11.50 12.19232 -0.692315
+#&gt; 21 parent 11.64 12.19232 -0.552315
#&gt; 35 parent 2.85 2.98327 -0.133266
#&gt; 35 parent 2.91 2.98327 -0.073266
#&gt; 50 parent 0.69 0.66013 0.029874
@@ -900,20 +908,20 @@ Per default, parameters in the kinetic models are internally transformed in
#&gt; 3 m1 12.96 13.22867 -0.268669
#&gt; 7 m1 22.97 25.36417 -2.394167
#&gt; 7 m1 24.47 25.36417 -0.894167
-#&gt; 14 m1 41.69 37.00974 4.680262
-#&gt; 14 m1 33.21 37.00974 -3.799738
+#&gt; 14 m1 41.69 37.00974 4.680263
+#&gt; 14 m1 33.21 37.00974 -3.799737
#&gt; 21 m1 44.37 41.90133 2.468668
#&gt; 21 m1 46.44 41.90133 4.538668
#&gt; 35 m1 41.22 43.45691 -2.236914
#&gt; 35 m1 37.95 43.45691 -5.506914
#&gt; 50 m1 41.19 41.34199 -0.151986
#&gt; 50 m1 40.01 41.34199 -1.331986
-#&gt; 75 m1 40.09 36.61470 3.475295
-#&gt; 75 m1 33.85 36.61470 -2.764705
-#&gt; 100 m1 31.04 32.20082 -1.160823
-#&gt; 100 m1 33.13 32.20082 0.929177
-#&gt; 120 m1 25.15 29.04130 -3.891303
-#&gt; 120 m1 33.31 29.04130 4.268697</div><div class='input'>
+#&gt; 75 m1 40.09 36.61471 3.475294
+#&gt; 75 m1 33.85 36.61471 -2.764706
+#&gt; 100 m1 31.04 32.20082 -1.160824
+#&gt; 100 m1 33.13 32.20082 0.929176
+#&gt; 120 m1 25.15 29.04130 -3.891305
+#&gt; 120 m1 33.31 29.04130 4.268695</div><div class='input'>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
diff --git a/docs/reference/mkinmod.html b/docs/reference/mkinmod.html
index b100f251..b545dad1 100644
--- a/docs/reference/mkinmod.html
+++ b/docs/reference/mkinmod.html
@@ -234,7 +234,7 @@ For the definition of model types and their parameters, the equations given
<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 file27ad440ff595.c 2&gt; file27ad440ff595.c.err.txt
+#&gt; /usr/lib/R/bin/R CMD SHLIB file35fe67db2b2a.c 2&gt; file35fe67db2b2a.c.err.txt
#&gt; Program source:
#&gt; 1: #include &lt;R.h&gt;
#&gt; 2:
diff --git a/docs/reference/mkinparplot-1.png b/docs/reference/mkinparplot-1.png
index 82b9c212..798722a2 100644
--- a/docs/reference/mkinparplot-1.png
+++ b/docs/reference/mkinparplot-1.png
Binary files differ
diff --git a/docs/reference/mkinpredict.html b/docs/reference/mkinpredict.html
index 56c1ed27..4b75603f 100644
--- a/docs/reference/mkinpredict.html
+++ b/docs/reference/mkinpredict.html
@@ -328,7 +328,7 @@
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/seq'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),
<span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"eigen"</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#&gt; time parent m1
#&gt; 201 20 4.978707 27.46227</div><div class='output co'>#&gt; User System verstrichen
-#&gt; 0.004 0.000 0.003 </div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/system.time'>system.time</a></span>(
+#&gt; 0.003 0.000 0.003 </div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/system.time'>system.time</a></span>(
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/print'>print</a></span>(<span class='fu'>mkinpredict</span>(<span class='no'>SFO_SFO</span>, <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='kw'>k_parent_m1</span> <span class='kw'>=</span> <span class='fl'>0.05</span>, <span class='kw'>k_parent_sink</span> <span class='kw'>=</span> <span class='fl'>0.1</span>, <span class='kw'>k_m1_sink</span> <span class='kw'>=</span> <span class='fl'>0.01</span>),
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/seq'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),
<span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#&gt; time parent m1
@@ -338,34 +338,34 @@
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fl'>100</span>, <span class='kw'>m1</span> <span class='kw'>=</span> <span class='fl'>0</span>), <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/seq'>seq</a></span>(<span class='fl'>0</span>, <span class='fl'>20</span>, <span class='kw'>by</span> <span class='kw'>=</span> <span class='fl'>0.1</span>),
<span class='kw'>solution_type</span> <span class='kw'>=</span> <span class='st'>"deSolve"</span>, <span class='kw'>use_compiled</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)[<span class='fl'>201</span>,]))</div><div class='output co'>#&gt; time parent m1
#&gt; 201 20 4.978707 27.46227</div><div class='output co'>#&gt; User System verstrichen
-#&gt; 0.04 0.00 0.04 </div><div class='input'>
+#&gt; 0.021 0.000 0.021 </div><div class='input'>
</div><div class='input'> <span class='co'># Predict from a fitted model</span>
- <span class='no'>f</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_C</span>)</div><div class='output co'>#&gt; Negative log-likelihood at call 1: 552.5739
-#&gt; Negative log-likelihood at call 3: 552.5739
-#&gt; Negative log-likelihood at call 4: 552.5739
-#&gt; Negative log-likelihood at call 6: 279.9345
-#&gt; Negative log-likelihood at call 7: 279.9344
-#&gt; Negative log-likelihood at call 8: 279.9294
-#&gt; Negative log-likelihood at call 9: 279.9294
-#&gt; Negative log-likelihood at call 12: 200.3629
-#&gt; Negative log-likelihood at call 13: 200.3629
-#&gt; Negative log-likelihood at call 18: 197.9039
-#&gt; Negative log-likelihood at call 25: 196.6754
-#&gt; Negative log-likelihood at call 27: 196.6754
-#&gt; Negative log-likelihood at call 32: 196.5742
-#&gt; Negative log-likelihood at call 33: 196.5742
-#&gt; Negative log-likelihood at call 34: 196.5742
-#&gt; Negative log-likelihood at call 38: 196.5361
-#&gt; Negative log-likelihood at call 40: 196.5361
-#&gt; Negative log-likelihood at call 44: 196.5336
-#&gt; Negative log-likelihood at call 45: 196.5336
-#&gt; Negative log-likelihood at call 50: 196.5334
-#&gt; Negative log-likelihood at call 51: 196.5334
-#&gt; Negative log-likelihood at call 52: 196.5334
-#&gt; Negative log-likelihood at call 56: 196.5334
-#&gt; Negative log-likelihood at call 58: 196.5334
-#&gt; Negative log-likelihood at call 59: 196.5334
-#&gt; Negative log-likelihood at call 65: 196.5334
+ <span class='no'>f</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_C</span>)</div><div class='output co'>#&gt; Sum of squared residuals at call 1: 552.5739
+#&gt; Sum of squared residuals at call 3: 552.5739
+#&gt; Sum of squared residuals at call 4: 552.5739
+#&gt; Sum of squared residuals at call 6: 279.9345
+#&gt; Sum of squared residuals at call 7: 279.9344
+#&gt; Sum of squared residuals at call 8: 279.9294
+#&gt; Sum of squared residuals at call 9: 279.9294
+#&gt; Sum of squared residuals at call 12: 200.3629
+#&gt; Sum of squared residuals at call 13: 200.3629
+#&gt; Sum of squared residuals at call 18: 197.9039
+#&gt; Sum of squared residuals at call 25: 196.6754
+#&gt; Sum of squared residuals at call 27: 196.6754
+#&gt; Sum of squared residuals at call 32: 196.5742
+#&gt; Sum of squared residuals at call 33: 196.5742
+#&gt; Sum of squared residuals at call 34: 196.5742
+#&gt; Sum of squared residuals at call 38: 196.5361
+#&gt; Sum of squared residuals at call 40: 196.5361
+#&gt; Sum of squared residuals at call 44: 196.5336
+#&gt; Sum of squared residuals at call 45: 196.5336
+#&gt; Sum of squared residuals at call 50: 196.5334
+#&gt; Sum of squared residuals at call 51: 196.5334
+#&gt; Sum of squared residuals at call 52: 196.5334
+#&gt; Sum of squared residuals at call 56: 196.5334
+#&gt; Sum of squared residuals at call 58: 196.5334
+#&gt; Sum of squared residuals at call 59: 196.5334
+#&gt; Sum of squared residuals at call 65: 196.5334
#&gt; Negative log-likelihood at call 75: 26.64668
#&gt; Negative log-likelihood at call 103: 26.64668
#&gt; Optimisation successfully terminated.</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/utils/topics/head'>head</a></span>(<span class='fu'>mkinpredict</span>(<span class='no'>f</span>))</div><div class='output co'>#&gt; time parent m1
diff --git a/docs/reference/mmkin-1.png b/docs/reference/mmkin-1.png
index 6f24b369..9d86a2df 100644
--- a/docs/reference/mmkin-1.png
+++ b/docs/reference/mmkin-1.png
Binary files differ
diff --git a/docs/reference/mmkin-2.png b/docs/reference/mmkin-2.png
index 1ed2b216..c66b0beb 100644
--- a/docs/reference/mmkin-2.png
+++ b/docs/reference/mmkin-2.png
Binary files differ
diff --git a/docs/reference/mmkin-3.png b/docs/reference/mmkin-3.png
index 4743eabd..761778f8 100644
--- a/docs/reference/mmkin-3.png
+++ b/docs/reference/mmkin-3.png
Binary files differ
diff --git a/docs/reference/mmkin-4.png b/docs/reference/mmkin-4.png
index cad6ee11..89048ea3 100644
--- a/docs/reference/mmkin-4.png
+++ b/docs/reference/mmkin-4.png
Binary files differ
diff --git a/docs/reference/mmkin-5.png b/docs/reference/mmkin-5.png
index 5e1527fa..0c81649c 100644
--- a/docs/reference/mmkin-5.png
+++ b/docs/reference/mmkin-5.png
Binary files differ
diff --git a/docs/reference/mmkin.html b/docs/reference/mmkin.html
index 68451ca6..a16cb6d7 100644
--- a/docs/reference/mmkin.html
+++ b/docs/reference/mmkin.html
@@ -194,8 +194,8 @@
<span class='no'>time_1</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/system.time'>system.time</a></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_default</span></div><div class='output co'>#&gt; User System verstrichen
-#&gt; 0.034 0.041 5.124 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#&gt; User System verstrichen
-#&gt; 19.594 0.000 19.605 </div><div class='input'>
+#&gt; 0.040 0.035 7.515 </div><div class='input'><span class='no'>time_1</span></div><div class='output co'>#&gt; User System verstrichen
+#&gt; 21.597 0.000 21.609 </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.7340481 0.2659519 0.7505683 0.2494317
diff --git a/docs/reference/nafta-1.png b/docs/reference/nafta-1.png
index c4f9f048..bcf5d12c 100644
--- a/docs/reference/nafta-1.png
+++ b/docs/reference/nafta-1.png
Binary files differ
diff --git a/docs/reference/nafta.html b/docs/reference/nafta.html
index 93bc3955..a9ee2f76 100644
--- a/docs/reference/nafta.html
+++ b/docs/reference/nafta.html
@@ -219,7 +219,7 @@
#&gt; DFOP 429 2380 841
#&gt;
#&gt; Representative half-life:
-#&gt; [1] 841.4094</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_evaluation</span>)</div><div class='img'><img src='nafta-1.png' alt='' width='700' height='433' /></div></pre>
+#&gt; [1] 841.41</div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>nafta_evaluation</span>)</div><div class='img'><img src='nafta-1.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
diff --git a/docs/reference/plot.mkinfit-3.png b/docs/reference/plot.mkinfit-3.png
index 9a074f31..52de09bd 100644
--- a/docs/reference/plot.mkinfit-3.png
+++ b/docs/reference/plot.mkinfit-3.png
Binary files differ
diff --git a/docs/reference/plot.mkinfit-4.png b/docs/reference/plot.mkinfit-4.png
index f8ae39c2..a832ede2 100644
--- a/docs/reference/plot.mkinfit-4.png
+++ b/docs/reference/plot.mkinfit-4.png
Binary files differ
diff --git a/docs/reference/plot.mmkin-1.png b/docs/reference/plot.mmkin-1.png
index 60e602d4..03d334f7 100644
--- a/docs/reference/plot.mmkin-1.png
+++ b/docs/reference/plot.mmkin-1.png
Binary files differ
diff --git a/docs/reference/plot.mmkin-2.png b/docs/reference/plot.mmkin-2.png
index f1e4318c..555cb7d6 100644
--- a/docs/reference/plot.mmkin-2.png
+++ b/docs/reference/plot.mmkin-2.png
Binary files differ
diff --git a/docs/reference/plot.mmkin-3.png b/docs/reference/plot.mmkin-3.png
index 04762756..412c7244 100644
--- a/docs/reference/plot.mmkin-3.png
+++ b/docs/reference/plot.mmkin-3.png
Binary files differ
diff --git a/docs/reference/schaefer07_complex_case.html b/docs/reference/schaefer07_complex_case.html
index fec2a187..f645e6a7 100644
--- a/docs/reference/schaefer07_complex_case.html
+++ b/docs/reference/schaefer07_complex_case.html
@@ -167,7 +167,7 @@
<span class='kw'>A2</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/list'>list</a></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'> </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'>model</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='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>fit</span>)</div><div class='img'><img src='schaefer07_complex_case-1.png' alt='' width='700' height='433' /></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_A1 parent_B1 parent_C1 parent_sink A1_A2 A1_sink
-#&gt; 0.3809619 0.1954667 0.4235714 0.0000000 0.4479605 0.5520395
+#&gt; 0.3809619 0.1954667 0.4235714 0.0000000 0.4479603 0.5520397
#&gt;
#&gt; $SFORB
#&gt; logical(0)
@@ -175,10 +175,10 @@
#&gt; $distimes
#&gt; DT50 DT90
#&gt; parent 13.95078 46.34350
-#&gt; A1 49.75344 165.27734
-#&gt; B1 37.26908 123.80520
-#&gt; C1 11.23130 37.30958
-#&gt; A2 28.50644 94.69634
+#&gt; A1 49.75343 165.27733
+#&gt; B1 37.26907 123.80518
+#&gt; C1 11.23131 37.30959
+#&gt; A2 28.50644 94.69635
#&gt; </div><div class='input'> </div><div class='input'> <span class='co'># Compare with the results obtained in the original publication</span>
<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/print'>print</a></span>(<span class='no'>schaefer07_complex_results</span>)</div><div class='output co'>#&gt; compound parameter KinGUI ModelMaker deviation
#&gt; 1 parent degradation rate 0.0496 0.0506 2.0
diff --git a/docs/reference/summary.mkinfit.html b/docs/reference/summary.mkinfit.html
index e5565990..1a08132f 100644
--- a/docs/reference/summary.mkinfit.html
+++ b/docs/reference/summary.mkinfit.html
@@ -210,19 +210,19 @@
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='fu'><a href='mkinmod.html'>mkinmod</a></span>(<span class='kw'>parent</span> <span class='kw'>=</span> <span class='fu'><a href='mkinsub.html'>mkinsub</a></span>(<span class='st'>"SFO"</span>)), <span class='no'>FOCUS_2006_A</span>, <span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>))</div><div class='output co'>#&gt; mkin version used for fitting: 0.9.49.4
-#&gt; R version used for fitting: 3.5.3
-#&gt; Date of fit: Wed Apr 10 10:11:15 2019
-#&gt; Date of summary: Wed Apr 10 10:11:15 2019
+#&gt; R version used for fitting: 3.6.0
+#&gt; Date of fit: Thu May 2 12:40:14 2019
+#&gt; Date of summary: Thu May 2 12:40:14 2019
#&gt;
#&gt; Equations:
#&gt; d_parent/dt = - k_parent_sink * parent
#&gt;
#&gt; Model predictions using solution type analytical
#&gt;
-#&gt; Fitted with method using 131 model solutions performed in 0.284 s
+#&gt; Fitted using 131 model solutions performed in 0.269 s
#&gt;
#&gt; Error model:
-#&gt; NULL
+#&gt; Constant variance
#&gt;
#&gt; Starting values for parameters to be optimised:
#&gt; value type
@@ -260,7 +260,7 @@
#&gt; k_parent_sink 0.03722 10.90 5.650e-05 0.0294 0.04712
#&gt; sigma 5.26600 4.00 5.162e-03 1.8820 8.64900
#&gt;
-#&gt; Chi2 error levels in percent:
+#&gt; FOCUS Chi2 error levels in percent:
#&gt; err.min n.optim df
#&gt; All data 8.385 2 6
#&gt; parent 8.385 2 6
diff --git a/docs/reference/test_data_from_UBA_2014-1.png b/docs/reference/test_data_from_UBA_2014-1.png
index 9157a6a1..a9aeea21 100644
--- a/docs/reference/test_data_from_UBA_2014-1.png
+++ b/docs/reference/test_data_from_UBA_2014-1.png
Binary files differ
diff --git a/docs/reference/test_data_from_UBA_2014-2.png b/docs/reference/test_data_from_UBA_2014-2.png
index 528f3987..f6c91bff 100644
--- a/docs/reference/test_data_from_UBA_2014-2.png
+++ b/docs/reference/test_data_from_UBA_2014-2.png
Binary files differ
diff --git a/docs/reference/test_data_from_UBA_2014.html b/docs/reference/test_data_from_UBA_2014.html
index dfb49619..688baf32 100644
--- a/docs/reference/test_data_from_UBA_2014.html
+++ b/docs/reference/test_data_from_UBA_2014.html
@@ -184,25 +184,25 @@
<span class='kw'>M3</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_soil</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='mkinfit.html'>mkinfit</a></span>(<span class='no'>m_soil</span>, <span class='no'>test_data_from_UBA_2014</span><span class='kw'>[[</span><span class='fl'>3</span>]]$<span class='no'>data</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: Observations with value of zero were removed from the data</span></div><div class='input'> <span class='fu'><a href='plot.mkinfit.html'>plot_sep</a></span>(<span class='no'>f_soil</span>, <span class='kw'>lpos</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"topright"</span>, <span class='st'>"topright"</span>, <span class='st'>"topright"</span>, <span class='st'>"bottomright"</span>))</div><div class='img'><img src='test_data_from_UBA_2014-2.png' alt='' width='700' height='433' /></div><div class='input'> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/summary'>summary</a></span>(<span class='no'>f_soil</span>)$<span class='no'>bpar</span></div><div class='output co'>#&gt; Estimate se_notrans t value Pr(&gt;t) Lower
-#&gt; parent_0 76.55425584 0.859186614 89.1008479 1.113866e-26 74.755959751
-#&gt; k_parent 0.12081956 0.004601922 26.2541548 1.077373e-16 0.111561582
-#&gt; k_M1 0.84258651 0.806231481 1.0450925 1.545475e-01 0.113839756
+#&gt; parent_0 76.55425583 0.859186612 89.1008482 1.113866e-26 74.755959748
+#&gt; k_parent 0.12081956 0.004601921 26.2541551 1.077372e-16 0.111561582
+#&gt; k_M1 0.84258650 0.806231456 1.0450926 1.545475e-01 0.113839804
#&gt; k_M2 0.04210878 0.017083049 2.4649452 1.170195e-02 0.018013807
#&gt; k_M3 0.01122919 0.007245890 1.5497322 6.885127e-02 0.002909463
-#&gt; f_parent_to_M1 0.32240199 0.240803570 1.3388589 9.820821e-02 NA
+#&gt; f_parent_to_M1 0.32240199 0.240803564 1.3388589 9.820820e-02 NA
#&gt; f_parent_to_M2 0.16099854 0.033691991 4.7785403 6.531225e-05 NA
-#&gt; f_M1_to_M3 0.27921500 0.269443517 1.0362654 1.565440e-01 0.022992921
-#&gt; f_M2_to_M3 0.55641333 0.595125456 0.9349513 1.807725e-01 0.008003316
+#&gt; f_M1_to_M3 0.27921500 0.269443517 1.0362654 1.565440e-01 0.022992933
+#&gt; f_M2_to_M3 0.55641333 0.595125466 0.9349513 1.807725e-01 0.008003317
#&gt; sigma 1.14005399 0.149696423 7.6157731 1.727024e-07 0.826735778
#&gt; Upper
#&gt; parent_0 78.35255192
#&gt; k_parent 0.13084582
-#&gt; k_M1 6.23641562
+#&gt; k_M1 6.23641283
#&gt; k_M2 0.09843279
#&gt; k_M3 0.04333950
#&gt; f_parent_to_M1 NA
#&gt; f_parent_to_M2 NA
-#&gt; f_M1_to_M3 0.86443090
+#&gt; f_M1_to_M3 0.86443084
#&gt; f_M2_to_M3 0.99489847
#&gt; sigma 1.45337221</div><div class='input'> <span class='fu'><a href='mkinerrmin.html'>mkinerrmin</a></span>(<span class='no'>f_soil</span>)</div><div class='output co'>#&gt; err.min n.optim df
#&gt; All data 0.09649963 9 20

Contact - Imprint