aboutsummaryrefslogblamecommitdiff
path: root/docs/dev/reference/summary.saem.mmkin.html
blob: 1a82f7ef6e73f6eea7bb2c66e7b99e080e713993 (plain) (tree)




























































































































































                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                                                                              

















































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                                                                                       










                                                                                            
                                                                                                                         
                                                                                                                                                                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                               








                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                   






                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
 
                                                                                                                                                                                                                                                                                                                                                              





                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                    
                                                              
                                    
                               
                                                                                                                                                                                                                                                                                                                    
                                                                                  
                                                   
                                                
                




                                                                            
           
                                                             

                                                       
                                                


                                                        


                                                                                      





                                                
                        
                                                                            





                                              
                   
                                                        



                                                        
                     





                                               
                     

                                 
                                                                      





                                                 

                                    
                        
                                    
                                                  
                                                  
           










































































































































































                                                                                                                              




























                                                                                
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Summary method for class "saem.mmkin" — summary.saem.mmkin • mkin</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

<!-- bootstrap-toc -->
<link rel="stylesheet" href="../bootstrap-toc.css">
<script src="../bootstrap-toc.js"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>




<meta property="og:title" content="Summary method for class "saem.mmkin" — summary.saem.mmkin" />
<meta property="og:description" content="Lists model equations, initial parameter values, optimised parameters
for fixed effects (population), random effects (deviations from the
population mean) and residual error model, as well as the resulting
endpoints such as formation fractions and DT50 values. Optionally
(default is FALSE), the data are listed in full." />


<meta name="robots" content="noindex">

<!-- mathjax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></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 data-spy="scroll" data-target="#toc">
    <div class="container template-reference-topic">
      <header>
      <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <span class="navbar-brand">
        <a class="navbar-link" href="../index.html">mkin</a>
        <span class="version label label-info" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.9.50.4</span>
      </span>
    </div>

    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
  <a href="../reference/index.html">Functions and data</a>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Articles
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../articles/mkin.html">Introduction to mkin</a>
    </li>
    <li>
      <a href="../articles/FOCUS_D.html">Example evaluation of FOCUS Example Dataset D</a>
    </li>
    <li>
      <a href="../articles/FOCUS_L.html">Example evaluation of FOCUS Laboratory Data L1 to L3</a>
    </li>
    <li>
      <a href="../articles/web_only/FOCUS_Z.html">Example evaluation of FOCUS Example Dataset Z</a>
    </li>
    <li>
      <a href="../articles/web_only/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>
    <li>
      <a href="../articles/web_only/NAFTA_examples.html">Example evaluation of NAFTA SOP Attachment examples</a>
    </li>
    <li>
      <a href="../articles/web_only/benchmarks.html">Some benchmark timings</a>
    </li>
  </ul>
</li>
<li>
  <a href="../news/index.html">News</a>
</li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
  <a href="https://github.com/jranke/mkin/">
    <span class="fab fa fab fa-github fa-lg"></span>
     
  </a>
</li>
      </ul>
      
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

      

      </header>

<div class="row">
  <div class="col-md-9 contents">
    <div class="page-header">
    <h1>Summary method for class "saem.mmkin"</h1>
    <small class="dont-index">Source: <a href='https://github.com/jranke/mkin/blob/master/R/summary.saem.mmkin.R'><code>R/summary.saem.mmkin.R</code></a></small>
    <div class="hidden name"><code>summary.saem.mmkin.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>Lists model equations, initial parameter values, optimised parameters
for fixed effects (population), random effects (deviations from the
population mean) and residual error model, as well as the resulting
endpoints such as formation fractions and DT50 values. Optionally
(default is FALSE), the data are listed in full.</p>
    </div>

    <pre class="usage"><span class='co'># S3 method for saem.mmkin</span>
<span class='fu'><a href='https://rdrr.io/pkg/saemix/man/summary-methods.html'>summary</a></span><span class='op'>(</span><span class='va'>object</span>, data <span class='op'>=</span> <span class='cn'>FALSE</span>, verbose <span class='op'>=</span> <span class='cn'>FALSE</span>, distimes <span class='op'>=</span> <span class='cn'>TRUE</span>, <span class='va'>...</span><span class='op'>)</span>

<span class='co'># S3 method for summary.saem.mmkin</span>
<span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span><span class='op'>(</span><span class='va'>x</span>, digits <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/Extremes.html'>max</a></span><span class='op'>(</span><span class='fl'>3</span>, <span class='fu'><a href='https://rdrr.io/r/base/options.html'>getOption</a></span><span class='op'>(</span><span class='st'>"digits"</span><span class='op'>)</span> <span class='op'>-</span> <span class='fl'>3</span><span class='op'>)</span>, verbose <span class='op'>=</span> <span class='va'>x</span><span class='op'>$</span><span class='va'>verbose</span>, <span class='va'>...</span><span class='op'>)</span></pre>

    <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
    <table class="ref-arguments">
    <colgroup><col class="name" /><col class="desc" /></colgroup>
    <tr>
      <th>object</th>
      <td><p>an object of class <a href='saem.html'>saem.mmkin</a></p></td>
    </tr>
    <tr>
      <th>data</th>
      <td><p>logical, indicating whether the full data should be included in
the summary.</p></td>
    </tr>
    <tr>
      <th>verbose</th>
      <td><p>Should the summary be verbose?</p></td>
    </tr>
    <tr>
      <th>distimes</th>
      <td><p>logical, indicating whether DT50 and DT90 values should be
included.</p></td>
    </tr>
    <tr>
      <th>...</th>
      <td><p>optional arguments passed to methods like <code>print</code>.</p></td>
    </tr>
    <tr>
      <th>x</th>
      <td><p>an object of class summary.saem.mmkin</p></td>
    </tr>
    <tr>
      <th>digits</th>
      <td><p>Number of digits to use for printing</p></td>
    </tr>
    </table>

    <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

    <p>The summary function returns a list based on the <a href='https://rdrr.io/pkg/saemix/man/SaemixObject-class.html'>saemix::SaemixObject</a>
obtained in the fit, with at least the following additional components</p>
<dt>saemixversion, mkinversion, Rversion</dt><dd><p>The saemix, 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>diffs</dt><dd><p>The differential equations used in the degradation model</p></dd>
<dt>use_of_ff</dt><dd><p>Was maximum or minimum use made of formation fractions</p></dd>
<dt>data</dt><dd><p>The data</p></dd>
<dt>confint_trans</dt><dd><p>Transformed parameters as used in the optimisation, with confidence intervals</p></dd>
<dt>confint_back</dt><dd><p>Backtransformed parameters, with confidence intervals if available</p></dd>
<dt>confint_errmod</dt><dd><p>Error model parameters with confidence intervals</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="author"><a class="anchor" href="#author"></a>Author</h2>

    <p>Johannes Ranke for the mkin specific parts
saemix authors for the parts inherited from saemix.</p>

    <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
    <pre class="examples"><div class='input'><span class='co'># Generate five datasets following DFOP-SFO kinetics</span>
<span class='va'>sampling_times</span> <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='fl'>0</span>, <span class='fl'>1</span>, <span class='fl'>3</span>, <span class='fl'>7</span>, <span class='fl'>14</span>, <span class='fl'>28</span>, <span class='fl'>60</span>, <span class='fl'>90</span>, <span class='fl'>120</span><span class='op'>)</span>
<span class='va'>dfop_sfo</span> <span class='op'>&lt;-</span> <span class='fu'><a href='mkinmod.html'>mkinmod</a></span><span class='op'>(</span>parent <span class='op'>=</span> <span class='fu'><a href='mkinmod.html'>mkinsub</a></span><span class='op'>(</span><span class='st'>"DFOP"</span>, <span class='st'>"m1"</span><span class='op'>)</span>,
 m1 <span class='op'>=</span> <span class='fu'><a href='mkinmod.html'>mkinsub</a></span><span class='op'>(</span><span class='st'>"SFO"</span><span class='op'>)</span>, quiet <span class='op'>=</span> <span class='cn'>TRUE</span><span class='op'>)</span>
<span class='fu'><a href='https://rdrr.io/r/base/Random.html'>set.seed</a></span><span class='op'>(</span><span class='fl'>1234</span><span class='op'>)</span>
<span class='va'>k1_in</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Lognormal.html'>rlnorm</a></span><span class='op'>(</span><span class='fl'>5</span>, <span class='fu'><a href='https://rdrr.io/r/base/Log.html'>log</a></span><span class='op'>(</span><span class='fl'>0.1</span><span class='op'>)</span>, <span class='fl'>0.3</span><span class='op'>)</span>
<span class='va'>k2_in</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Lognormal.html'>rlnorm</a></span><span class='op'>(</span><span class='fl'>5</span>, <span class='fu'><a href='https://rdrr.io/r/base/Log.html'>log</a></span><span class='op'>(</span><span class='fl'>0.02</span><span class='op'>)</span>, <span class='fl'>0.3</span><span class='op'>)</span>
<span class='va'>g_in</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Logistic.html'>plogis</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/stats/Normal.html'>rnorm</a></span><span class='op'>(</span><span class='fl'>5</span>, <span class='fu'><a href='https://rdrr.io/r/stats/Logistic.html'>qlogis</a></span><span class='op'>(</span><span class='fl'>0.5</span><span class='op'>)</span>, <span class='fl'>0.3</span><span class='op'>)</span><span class='op'>)</span>
<span class='va'>f_parent_to_m1_in</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Logistic.html'>plogis</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/stats/Normal.html'>rnorm</a></span><span class='op'>(</span><span class='fl'>5</span>, <span class='fu'><a href='https://rdrr.io/r/stats/Logistic.html'>qlogis</a></span><span class='op'>(</span><span class='fl'>0.3</span><span class='op'>)</span>, <span class='fl'>0.3</span><span class='op'>)</span><span class='op'>)</span>
<span class='va'>k_m1_in</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Lognormal.html'>rlnorm</a></span><span class='op'>(</span><span class='fl'>5</span>, <span class='fu'><a href='https://rdrr.io/r/base/Log.html'>log</a></span><span class='op'>(</span><span class='fl'>0.02</span><span class='op'>)</span>, <span class='fl'>0.3</span><span class='op'>)</span>

<span class='va'>pred_dfop_sfo</span> <span class='op'>&lt;-</span> <span class='kw'>function</span><span class='op'>(</span><span class='va'>k1</span>, <span class='va'>k2</span>, <span class='va'>g</span>, <span class='va'>f_parent_to_m1</span>, <span class='va'>k_m1</span><span class='op'>)</span> <span class='op'>{</span>
  <span class='fu'><a href='mkinpredict.html'>mkinpredict</a></span><span class='op'>(</span><span class='va'>dfop_sfo</span>,
    <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span>k1 <span class='op'>=</span> <span class='va'>k1</span>, k2 <span class='op'>=</span> <span class='va'>k2</span>, g <span class='op'>=</span> <span class='va'>g</span>, f_parent_to_m1 <span class='op'>=</span> <span class='va'>f_parent_to_m1</span>, k_m1 <span class='op'>=</span> <span class='va'>k_m1</span><span class='op'>)</span>,
    <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span>parent <span class='op'>=</span> <span class='fl'>100</span>, m1 <span class='op'>=</span> <span class='fl'>0</span><span class='op'>)</span>,
    <span class='va'>sampling_times</span><span class='op'>)</span>
<span class='op'>}</span>

<span class='va'>ds_mean_dfop_sfo</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>lapply</a></span><span class='op'>(</span><span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span>, <span class='kw'>function</span><span class='op'>(</span><span class='va'>i</span><span class='op'>)</span> <span class='op'>{</span>
  <span class='fu'><a href='mkinpredict.html'>mkinpredict</a></span><span class='op'>(</span><span class='va'>dfop_sfo</span>,
    <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span>k1 <span class='op'>=</span> <span class='va'>k1_in</span><span class='op'>[</span><span class='va'>i</span><span class='op'>]</span>, k2 <span class='op'>=</span> <span class='va'>k2_in</span><span class='op'>[</span><span class='va'>i</span><span class='op'>]</span>, g <span class='op'>=</span> <span class='va'>g_in</span><span class='op'>[</span><span class='va'>i</span><span class='op'>]</span>,
      f_parent_to_m1 <span class='op'>=</span> <span class='va'>f_parent_to_m1_in</span><span class='op'>[</span><span class='va'>i</span><span class='op'>]</span>, k_m1 <span class='op'>=</span> <span class='va'>k_m1_in</span><span class='op'>[</span><span class='va'>i</span><span class='op'>]</span><span class='op'>)</span>,
    <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span>parent <span class='op'>=</span> <span class='fl'>100</span>, m1 <span class='op'>=</span> <span class='fl'>0</span><span class='op'>)</span>,
    <span class='va'>sampling_times</span><span class='op'>)</span>
<span class='op'>}</span><span class='op'>)</span>
<span class='fu'><a href='https://rdrr.io/r/base/names.html'>names</a></span><span class='op'>(</span><span class='va'>ds_mean_dfop_sfo</span><span class='op'>)</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste</a></span><span class='op'>(</span><span class='st'>"ds"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span>

<span class='va'>ds_syn_dfop_sfo</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>lapply</a></span><span class='op'>(</span><span class='va'>ds_mean_dfop_sfo</span>, <span class='kw'>function</span><span class='op'>(</span><span class='va'>ds</span><span class='op'>)</span> <span class='op'>{</span>
  <span class='fu'><a href='add_err.html'>add_err</a></span><span class='op'>(</span><span class='va'>ds</span>,
    sdfunc <span class='op'>=</span> <span class='kw'>function</span><span class='op'>(</span><span class='va'>value</span><span class='op'>)</span> <span class='fu'><a href='https://rdrr.io/r/base/MathFun.html'>sqrt</a></span><span class='op'>(</span><span class='fl'>1</span><span class='op'>^</span><span class='fl'>2</span> <span class='op'>+</span> <span class='va'>value</span><span class='op'>^</span><span class='fl'>2</span> <span class='op'>*</span> <span class='fl'>0.07</span><span class='op'>^</span><span class='fl'>2</span><span class='op'>)</span>,
    n <span class='op'>=</span> <span class='fl'>1</span><span class='op'>)</span><span class='op'>[[</span><span class='fl'>1</span><span class='op'>]</span><span class='op'>]</span>
<span class='op'>}</span><span class='op'>)</span>

<span class='co'># \dontrun{</span>
<span class='co'># Evaluate using mmkin and saem</span>
<span class='va'>f_mmkin_dfop_sfo</span> <span class='op'>&lt;-</span> <span class='fu'><a href='mmkin.html'>mmkin</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span><span class='op'>(</span><span class='va'>dfop_sfo</span><span class='op'>)</span>, <span class='va'>ds_syn_dfop_sfo</span>,
  quiet <span class='op'>=</span> <span class='cn'>TRUE</span>, error_model <span class='op'>=</span> <span class='st'>"tc"</span>, cores <span class='op'>=</span> <span class='fl'>5</span><span class='op'>)</span>
<span class='va'>f_saem_dfop_sfo</span> <span class='op'>&lt;-</span> <span class='fu'><a href='saem.html'>saem</a></span><span class='op'>(</span><span class='va'>f_mmkin_dfop_sfo</span><span class='op'>)</span>
</div><div class='output co'>#&gt; Running main SAEM algorithm
#&gt; [1] "Mon Nov 30 16:01:26 2020"
#&gt; ....
#&gt;     Minimisation finished
#&gt; [1] "Mon Nov 30 16:01:39 2020"</div><div class='input'><span class='fu'><a href='https://rdrr.io/pkg/saemix/man/summary-methods.html'>summary</a></span><span class='op'>(</span><span class='va'>f_saem_dfop_sfo</span>, data <span class='op'>=</span> <span class='cn'>TRUE</span><span class='op'>)</span>
</div><div class='output co'>#&gt; saemix version used for fitting:      3.1.9000 
#&gt; mkin version used for pre-fitting:  0.9.50.4 
#&gt; R version used for fitting:         4.0.3 
#&gt; Date of fit:     Mon Nov 30 16:01:40 2020 
#&gt; Date of summary: Mon Nov 30 16:01:40 2020 
#&gt; 
#&gt; Equations:
#&gt; d_parent/dt = - ((k1 * g * exp(-k1 * time) + k2 * (1 - g) * exp(-k2 *
#&gt;            time)) / (g * exp(-k1 * time) + (1 - g) * exp(-k2 * time)))
#&gt;            * parent
#&gt; d_m1/dt = + f_parent_to_m1 * ((k1 * g * exp(-k1 * time) + k2 * (1 - g)
#&gt;            * exp(-k2 * time)) / (g * exp(-k1 * time) + (1 - g) *
#&gt;            exp(-k2 * time))) * parent - k_m1 * m1
#&gt; 
#&gt; Data:
#&gt; 171 observations of 2 variable(s) grouped in 5 datasets
#&gt; 
#&gt; Model predictions using solution type analytical 
#&gt; 
#&gt; Fitted in 14.5 s using 300, 100 iterations
#&gt; 
#&gt; Variance model: Two-component variance function 
#&gt; 
#&gt; Mean of starting values for individual parameters:
#&gt;        parent_0        log_k_m1 f_parent_qlogis          log_k1          log_k2 
#&gt;    101.65644697     -4.05368181     -0.94310703     -2.35943247     -4.07006293 
#&gt;        g_qlogis 
#&gt;     -0.01132621 
#&gt; 
#&gt; Fixed degradation parameter values:
#&gt; None
#&gt; 
#&gt; Results:
#&gt; 
#&gt; Likelihood computed by importance sampling
#&gt;   AIC   BIC logLik
#&gt;   830 824.5   -401
#&gt; 
#&gt; Optimised, transformed parameters with symmetric confidence intervals:
#&gt;                     est.  lower    upper
#&gt; parent_0        101.4423 97.862 105.0224
#&gt; log_k_m1         -4.0703 -4.191  -3.9495
#&gt; f_parent_qlogis  -0.9539 -1.313  -0.5949
#&gt; log_k1           -2.9724 -3.811  -2.1342
#&gt; log_k2           -3.4977 -4.206  -2.7895
#&gt; g_qlogis         -0.0449 -1.116   1.0262
#&gt; 
#&gt; Correlation: 
#&gt;                 prnt_0 lg_k_1 f_prn_ log_k1 log_k2
#&gt; log_k_m1        -0.207                            
#&gt; f_parent_qlogis -0.148  0.202                     
#&gt; log_k1           0.040 -0.038 -0.022              
#&gt; log_k2           0.022 -0.015 -0.009  0.001       
#&gt; g_qlogis        -0.012  0.005  0.011 -0.173 -0.130
#&gt; 
#&gt; Random effects:
#&gt;                       est.   lower  upper
#&gt; SD.parent_0        2.88564 -0.5163 6.2876
#&gt; SD.log_k_m1        0.08502 -0.0427 0.2127
#&gt; SD.f_parent_qlogis 0.38857  0.1350 0.6421
#&gt; SD.log_k1          0.92338  0.3296 1.5172
#&gt; SD.log_k2          0.78644  0.2817 1.2912
#&gt; SD.g_qlogis        0.34614 -0.8727 1.5650
#&gt; 
#&gt; Variance model:
#&gt;        est.   lower   upper
#&gt; a.1 0.65859 0.49250 0.82469
#&gt; b.1 0.06411 0.05006 0.07817
#&gt; 
#&gt; Backtransformed parameters with asymmetric confidence intervals:
#&gt;                     est.    lower     upper
#&gt; parent_0       101.44231 97.86220 105.02241
#&gt; k_m1             0.01707  0.01513   0.01926
#&gt; f_parent_to_m1   0.27811  0.21201   0.35551
#&gt; k1               0.05118  0.02213   0.11834
#&gt; k2               0.03027  0.01491   0.06145
#&gt; g                0.48878  0.24675   0.73618
#&gt; 
#&gt; Resulting formation fractions:
#&gt;                 ff
#&gt; parent_m1   0.2781
#&gt; parent_sink 0.7219
#&gt; 
#&gt; Estimated disappearance times:
#&gt;         DT50   DT90 DT50back DT50_k1 DT50_k2
#&gt; parent 17.53  61.64    18.55   13.54    22.9
#&gt; m1     40.60 134.88       NA      NA      NA
#&gt; 
#&gt; Data:
#&gt;    ds   name time observed  predicted   residual    std standardized
#&gt;  ds 1 parent    0     89.8  9.869e+01   8.894553 6.3618     1.398124
#&gt;  ds 1 parent    0    104.1  9.869e+01  -5.405447 6.3618    -0.849676
#&gt;  ds 1 parent    1     88.7  9.413e+01   5.426448 6.0706     0.893897
#&gt;  ds 1 parent    1     95.5  9.413e+01  -1.373552 6.0706    -0.226265
#&gt;  ds 1 parent    3     81.8  8.576e+01   3.961821 5.5377     0.715422
#&gt;  ds 1 parent    3     94.5  8.576e+01  -8.738179 5.5377    -1.577932
#&gt;  ds 1 parent    7     71.5  7.168e+01   0.184828 4.6429     0.039809
#&gt;  ds 1 parent    7     70.3  7.168e+01   1.384828 4.6429     0.298270
#&gt;  ds 1 parent   14     54.2  5.351e+01  -0.688235 3.4934    -0.197008
#&gt;  ds 1 parent   14     49.6  5.351e+01   3.911765 3.4934     1.119747
#&gt;  ds 1 parent   28     31.5  3.209e+01   0.590445 2.1603     0.273322
#&gt;  ds 1 parent   28     28.8  3.209e+01   3.290445 2.1603     1.523177
#&gt;  ds 1 parent   60     12.1  1.272e+01   0.618158 1.0481     0.589761
#&gt;  ds 1 parent   60     13.6  1.272e+01  -0.881842 1.0481    -0.841332
#&gt;  ds 1 parent   90      6.2  6.085e+00  -0.115212 0.7655    -0.150512
#&gt;  ds 1 parent   90      8.3  6.085e+00  -2.215212 0.7655    -2.893953
#&gt;  ds 1 parent  120      2.2  3.009e+00   0.809439 0.6863     1.179470
#&gt;  ds 1 parent  120      2.4  3.009e+00   0.609439 0.6863     0.888041
#&gt;  ds 1     m1    1      0.3  1.129e+00   0.828817 0.6626     1.250938
#&gt;  ds 1     m1    1      0.2  1.129e+00   0.928817 0.6626     1.401869
#&gt;  ds 1     m1    3      2.2  3.141e+00   0.940880 0.6887     1.366187
#&gt;  ds 1     m1    3      3.0  3.141e+00   0.140880 0.6887     0.204562
#&gt;  ds 1     m1    7      6.5  6.326e+00  -0.174162 0.7735    -0.225175
#&gt;  ds 1     m1    7      5.0  6.326e+00   1.325838 0.7735     1.714181
#&gt;  ds 1     m1   14     10.2  9.883e+00  -0.317417 0.9139    -0.347326
#&gt;  ds 1     m1   14      9.5  9.883e+00   0.382583 0.9139     0.418631
#&gt;  ds 1     m1   28     12.2  1.251e+01   0.309856 1.0378     0.298572
#&gt;  ds 1     m1   28     13.4  1.251e+01  -0.890144 1.0378    -0.857726
#&gt;  ds 1     m1   60     11.8  1.086e+01  -0.940009 0.9584    -0.980812
#&gt;  ds 1     m1   60     13.2  1.086e+01  -2.340009 0.9584    -2.441581
#&gt;  ds 1     m1   90      6.6  7.823e+00   1.222977 0.8278     1.477332
#&gt;  ds 1     m1   90      9.3  7.823e+00  -1.477023 0.8278    -1.784214
#&gt;  ds 1     m1  120      3.5  5.315e+00   1.815201 0.7415     2.447906
#&gt;  ds 1     m1  120      5.4  5.315e+00  -0.084799 0.7415    -0.114356
#&gt;  ds 2 parent    0    118.0  1.031e+02 -14.876736 6.6443    -2.239038
#&gt;  ds 2 parent    0     99.8  1.031e+02   3.323264 6.6443     0.500171
#&gt;  ds 2 parent    1     90.2  9.757e+01   7.371379 6.2902     1.171891
#&gt;  ds 2 parent    1     94.6  9.757e+01   2.971379 6.2902     0.472386
#&gt;  ds 2 parent    3     96.1  8.788e+01  -8.222746 5.6724    -1.449599
#&gt;  ds 2 parent    3     78.4  8.788e+01   9.477254 5.6724     1.670758
#&gt;  ds 2 parent    7     77.9  7.293e+01  -4.972272 4.7218    -1.053054
#&gt;  ds 2 parent    7     77.7  7.293e+01  -4.772272 4.7218    -1.010697
#&gt;  ds 2 parent   14     56.0  5.602e+01   0.016773 3.6513     0.004594
#&gt;  ds 2 parent   14     54.7  5.602e+01   1.316773 3.6513     0.360633
#&gt;  ds 2 parent   28     36.6  3.855e+01   1.945779 2.5575     0.760803
#&gt;  ds 2 parent   28     36.8  3.855e+01   1.745779 2.5575     0.682603
#&gt;  ds 2 parent   60     22.1  2.101e+01  -1.086693 1.4996    -0.724663
#&gt;  ds 2 parent   60     24.7  2.101e+01  -3.686693 1.4996    -2.458475
#&gt;  ds 2 parent   90     12.4  1.246e+01   0.058759 1.0353     0.056757
#&gt;  ds 2 parent   90     10.8  1.246e+01   1.658759 1.0353     1.602256
#&gt;  ds 2 parent  120      6.8  7.406e+00   0.606226 0.8119     0.746659
#&gt;  ds 2 parent  120      7.9  7.406e+00  -0.493774 0.8119    -0.608157
#&gt;  ds 2     m1    1      1.3  1.438e+00   0.138236 0.6650     0.207869
#&gt;  ds 2     m1    3      3.7  3.879e+00   0.178617 0.7040     0.253726
#&gt;  ds 2     m1    3      4.7  3.879e+00  -0.821383 0.7040    -1.166780
#&gt;  ds 2     m1    7      8.1  7.389e+00  -0.710951 0.8113    -0.876337
#&gt;  ds 2     m1    7      7.9  7.389e+00  -0.510951 0.8113    -0.629812
#&gt;  ds 2     m1   14     10.1  1.069e+01   0.593533 0.9507     0.624328
#&gt;  ds 2     m1   14     10.3  1.069e+01   0.393533 0.9507     0.413951
#&gt;  ds 2     m1   28     10.7  1.240e+01   1.703647 1.0325     1.649956
#&gt;  ds 2     m1   28     12.2  1.240e+01   0.203647 1.0325     0.197229
#&gt;  ds 2     m1   60     10.7  1.055e+01  -0.147672 0.9442    -0.156405
#&gt;  ds 2     m1   60     12.5  1.055e+01  -1.947672 0.9442    -2.062848
#&gt;  ds 2     m1   90      9.1  8.010e+00  -1.090041 0.8351    -1.305210
#&gt;  ds 2     m1   90      7.4  8.010e+00   0.609959 0.8351     0.730362
#&gt;  ds 2     m1  120      6.1  5.793e+00  -0.306797 0.7561    -0.405759
#&gt;  ds 2     m1  120      4.5  5.793e+00   1.293203 0.7561     1.710347
#&gt;  ds 3 parent    0    106.2  1.035e+02  -2.712344 6.6675    -0.406801
#&gt;  ds 3 parent    0    106.9  1.035e+02  -3.412344 6.6675    -0.511788
#&gt;  ds 3 parent    1    107.4  9.548e+01 -11.924044 6.1566    -1.936801
#&gt;  ds 3 parent    1     96.1  9.548e+01  -0.624044 6.1566    -0.101362
#&gt;  ds 3 parent    3     79.4  8.246e+01   3.056105 5.3274     0.573662
#&gt;  ds 3 parent    3     82.6  8.246e+01  -0.143895 5.3274    -0.027010
#&gt;  ds 3 parent    7     63.9  6.489e+01   0.991141 4.2122     0.235304
#&gt;  ds 3 parent    7     62.4  6.489e+01   2.491141 4.2122     0.591416
#&gt;  ds 3 parent   14     51.0  4.869e+01  -2.306824 3.1906    -0.723013
#&gt;  ds 3 parent   14     47.1  4.869e+01   1.593176 3.1906     0.499338
#&gt;  ds 3 parent   28     36.1  3.480e+01  -1.304261 2.3260    -0.560722
#&gt;  ds 3 parent   28     36.6  3.480e+01  -1.804261 2.3260    -0.775679
#&gt;  ds 3 parent   60     20.1  1.988e+01  -0.221952 1.4346    -0.154719
#&gt;  ds 3 parent   60     19.8  1.988e+01   0.078048 1.4346     0.054406
#&gt;  ds 3 parent   90     11.3  1.194e+01   0.642458 1.0099     0.636132
#&gt;  ds 3 parent   90     10.7  1.194e+01   1.242458 1.0099     1.230224
#&gt;  ds 3 parent  120      8.2  7.176e+00  -1.023847 0.8034    -1.274423
#&gt;  ds 3 parent  120      7.3  7.176e+00  -0.123847 0.8034    -0.154158
#&gt;  ds 3     m1    0      0.8  8.527e-13  -0.800000 0.6586    -1.214712
#&gt;  ds 3     m1    1      1.8  1.856e+00   0.055925 0.6693     0.083562
#&gt;  ds 3     m1    1      2.3  1.856e+00  -0.444075 0.6693    -0.663537
#&gt;  ds 3     m1    3      4.2  4.780e+00   0.580164 0.7264     0.798676
#&gt;  ds 3     m1    3      4.1  4.780e+00   0.680164 0.7264     0.936340
#&gt;  ds 3     m1    7      6.8  8.410e+00   1.609920 0.8512     1.891455
#&gt;  ds 3     m1    7     10.1  8.410e+00  -1.690080 0.8512    -1.985633
#&gt;  ds 3     m1   14     11.4  1.098e+01  -0.424444 0.9638    -0.440389
#&gt;  ds 3     m1   14     12.8  1.098e+01  -1.824444 0.9638    -1.892979
#&gt;  ds 3     m1   28     11.5  1.142e+01  -0.079336 0.9848    -0.080558
#&gt;  ds 3     m1   28     10.6  1.142e+01   0.820664 0.9848     0.833311
#&gt;  ds 3     m1   60      7.5  9.110e+00   1.610231 0.8803     1.829222
#&gt;  ds 3     m1   60      8.6  9.110e+00   0.510231 0.8803     0.579622
#&gt;  ds 3     m1   90      7.3  6.799e+00  -0.501085 0.7898    -0.634463
#&gt;  ds 3     m1   90      8.1  6.799e+00  -1.301085 0.7898    -1.647404
#&gt;  ds 3     m1  120      5.3  4.868e+00  -0.431505 0.7288    -0.592064
#&gt;  ds 3     m1  120      3.8  4.868e+00   1.068495 0.7288     1.466073
#&gt;  ds 4 parent    0    104.7  9.926e+01  -5.444622 6.3975    -0.851049
#&gt;  ds 4 parent    0     88.3  9.926e+01  10.955378 6.3975     1.712436
#&gt;  ds 4 parent    1     94.2  9.618e+01   1.978413 6.2013     0.319030
#&gt;  ds 4 parent    1     94.6  9.618e+01   1.578413 6.2013     0.254527
#&gt;  ds 4 parent    3     78.1  9.037e+01  12.268550 5.8311     2.103985
#&gt;  ds 4 parent    3     96.5  9.037e+01  -6.131450 5.8311    -1.051508
#&gt;  ds 4 parent    7     76.2  7.999e+01   3.794958 5.1708     0.733918
#&gt;  ds 4 parent    7     77.8  7.999e+01   2.194958 5.1708     0.424489
#&gt;  ds 4 parent   14     70.8  6.518e+01  -5.624996 4.2301    -1.329742
#&gt;  ds 4 parent   14     67.3  6.518e+01  -2.124996 4.2301    -0.502346
#&gt;  ds 4 parent   28     43.1  4.462e+01   1.517860 2.9354     0.517085
#&gt;  ds 4 parent   28     45.1  4.462e+01  -0.482140 2.9354    -0.164249
#&gt;  ds 4 parent   60     21.3  2.130e+01  -0.003305 1.5159    -0.002180
#&gt;  ds 4 parent   60     23.5  2.130e+01  -2.203305 1.5159    -1.453435
#&gt;  ds 4 parent   90     11.8  1.180e+01   0.002834 1.0032     0.002825
#&gt;  ds 4 parent   90     12.1  1.180e+01  -0.297166 1.0032    -0.296226
#&gt;  ds 4 parent  120      7.0  6.868e+00  -0.132251 0.7922    -0.166937
#&gt;  ds 4 parent  120      6.2  6.868e+00   0.667749 0.7922     0.842879
#&gt;  ds 4     m1    0      1.6  0.000e+00  -1.600000 0.6586    -2.429424
#&gt;  ds 4     m1    1      0.9  6.826e-01  -0.217363 0.6600    -0.329315
#&gt;  ds 4     m1    3      3.7  1.935e+00  -1.765082 0.6702    -2.633768
#&gt;  ds 4     m1    3      2.0  1.935e+00  -0.065082 0.6702    -0.097112
#&gt;  ds 4     m1    7      3.6  4.035e+00   0.434805 0.7076     0.614501
#&gt;  ds 4     m1    7      3.8  4.035e+00   0.234805 0.7076     0.331845
#&gt;  ds 4     m1   14      7.1  6.652e+00  -0.448187 0.7846    -0.571220
#&gt;  ds 4     m1   14      6.6  6.652e+00   0.051813 0.7846     0.066036
#&gt;  ds 4     m1   28      9.5  9.156e+00  -0.343805 0.8822    -0.389696
#&gt;  ds 4     m1   28      9.3  9.156e+00  -0.143805 0.8822    -0.163000
#&gt;  ds 4     m1   60      8.3  8.848e+00   0.547762 0.8692     0.630185
#&gt;  ds 4     m1   60      9.0  8.848e+00  -0.152238 0.8692    -0.175146
#&gt;  ds 4     m1   90      6.6  6.674e+00   0.073979 0.7854     0.094194
#&gt;  ds 4     m1   90      7.7  6.674e+00  -1.026021 0.7854    -1.306390
#&gt;  ds 4     m1  120      3.7  4.668e+00   0.967537 0.7234     1.337503
#&gt;  ds 4     m1  120      3.5  4.668e+00   1.167537 0.7234     1.613979
#&gt;  ds 5 parent    0    110.4  1.022e+02  -8.170986 6.5872    -1.240433
#&gt;  ds 5 parent    0    112.1  1.022e+02  -9.870986 6.5872    -1.498509
#&gt;  ds 5 parent    1     93.5  9.513e+01   1.630764 6.1346     0.265832
#&gt;  ds 5 parent    1     91.0  9.513e+01   4.130764 6.1346     0.673359
#&gt;  ds 5 parent    3     71.0  8.296e+01  11.964279 5.3597     2.232268
#&gt;  ds 5 parent    3     89.7  8.296e+01  -6.735721 5.3597    -1.256735
#&gt;  ds 5 parent    7     60.4  6.495e+01   4.547441 4.2157     1.078684
#&gt;  ds 5 parent    7     59.1  6.495e+01   5.847441 4.2157     1.387053
#&gt;  ds 5 parent   14     56.5  4.626e+01 -10.241319 3.0380    -3.371047
#&gt;  ds 5 parent   14     47.0  4.626e+01  -0.741319 3.0380    -0.244014
#&gt;  ds 5 parent   28     30.2  3.026e+01   0.058478 2.0487     0.028544
#&gt;  ds 5 parent   28     23.9  3.026e+01   6.358478 2.0487     3.103661
#&gt;  ds 5 parent   60     17.0  1.792e+01   0.919046 1.3242     0.694024
#&gt;  ds 5 parent   60     18.7  1.792e+01  -0.780954 1.3242    -0.589742
#&gt;  ds 5 parent   90     11.3  1.187e+01   0.573917 1.0066     0.570144
#&gt;  ds 5 parent   90     11.9  1.187e+01  -0.026083 1.0066    -0.025912
#&gt;  ds 5 parent  120      9.0  7.898e+00  -1.102089 0.8307    -1.326622
#&gt;  ds 5 parent  120      8.1  7.898e+00  -0.202089 0.8307    -0.243261
#&gt;  ds 5     m1    0      0.7 -1.421e-14  -0.700000 0.6586    -1.062873
#&gt;  ds 5     m1    1      3.0  3.144e+00   0.143526 0.6887     0.208390
#&gt;  ds 5     m1    1      2.6  3.144e+00   0.543526 0.6887     0.789161
#&gt;  ds 5     m1    3      5.1  8.390e+00   3.290265 0.8504     3.869277
#&gt;  ds 5     m1    3      7.5  8.390e+00   0.890265 0.8504     1.046932
#&gt;  ds 5     m1    7     16.5  1.566e+01  -0.841368 1.2007    -0.700751
#&gt;  ds 5     m1    7     19.0  1.566e+01  -3.341368 1.2007    -2.782928
#&gt;  ds 5     m1   14     22.9  2.188e+01  -1.017753 1.5498    -0.656687
#&gt;  ds 5     m1   14     23.2  2.188e+01  -1.317753 1.5498    -0.850257
#&gt;  ds 5     m1   28     22.2  2.386e+01   1.655914 1.6652     0.994399
#&gt;  ds 5     m1   28     24.4  2.386e+01  -0.544086 1.6652    -0.326731
#&gt;  ds 5     m1   60     15.5  1.859e+01   3.091124 1.3618     2.269915
#&gt;  ds 5     m1   60     19.8  1.859e+01  -1.208876 1.3618    -0.887718
#&gt;  ds 5     m1   90     14.9  1.372e+01  -1.176815 1.0990    -1.070784
#&gt;  ds 5     m1   90     14.2  1.372e+01  -0.476815 1.0990    -0.433854
#&gt;  ds 5     m1  120     10.9  9.961e+00  -0.938796 0.9174    -1.023332
#&gt;  ds 5     m1  120     10.4  9.961e+00  -0.438796 0.9174    -0.478308</div><div class='input'><span class='co'># }</span>

</div></pre>
  </div>
  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
    <nav id="toc" data-toggle="toc" class="sticky-top">
      <h2 data-toc-skip>Contents</h2>
    </nav>
  </div>
</div>


      <footer>
      <div class="copyright">
  <p>Developed by Johannes Ranke.</p>
</div>

<div class="pkgdown">
  <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>

      </footer>
   </div>

  


  </body>
</html>


Contact - Imprint