:orphan: 





.. _blq_pk_fit:



Depot + One compartment PK with BLQ
###################################

[Generated automatically as a Fitting summary]

Inputs
******



Description
===========

:Name: blq_pk

:Title: Depot + One compartment PK with BLQ

:Author: J.R. Hartley

:Abstract: 

| Depot One Comp PK model, with BLQ (below level of quantification) observations.

:Keywords: tutorial; pk; advan4; dep_two_cmp; blq

:Input Script: :download:`blq_pk_fit.pyml <blq_pk_fit.pyml>`

:Input Data: :download:`synthetic_data.csv <synthetic_data.csv>`

:Diagram: 


.. thumbnail:: blq_pk_fit.pyml_output/fit/compartment_diagram.svg
    :width: 200px


Initial fixed effect estimates
==============================

.. code-block:: pyml

    f[KA] = 1.0000
    f[CL] = 1.0000
    f[V1] = 20.0000
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.0500, 0.0100, 0.0100 ],
        [ 0.0100, 0.0500, 0.0100 ],
        [ 0.0100, 0.0100, 0.0500 ],
    ]
    f[PNOISE] = 0.1000
    f[ANOISE] = 0.0100



Outputs
*******



Final objective value
=====================

.. code-block:: pyml

    -763.9910


which required 1.29 iterations and took 1422.02 seconds

Final fitted fixed effects
==========================

.. code-block:: pyml

    f[KA] = 0.1957
    f[CL] = 2.0245
    f[V1] = 47.0079
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.1365, 0.0159, 0.0617 ],
        [ 0.0159, 0.0390, 0.0200 ],
        [ 0.0617, 0.0200, 0.1256 ],
    ]
    f[PNOISE] = 0.1389
    f[ANOISE] = 0.0100



Fitted parameter .csv files
===========================


:Fixed Effects: :download:`fx_params.csv (fit) <blq_pk_fit.pyml_output/fit/solN/fx_params.csv>`

:Random Effects: :download:`rx_params.csv (fit) <blq_pk_fit.pyml_output/fit/solN/rx_params.csv>`

:Model params: :download:`mx_params.csv (fit) <blq_pk_fit.pyml_output/fit/solN/mx_params.csv>`

:State values: :download:`sx_params.csv (fit) <blq_pk_fit.pyml_output/fit/solN/sx_params.csv>`

:Predictions: :download:`px_params.csv (fit) <blq_pk_fit.pyml_output/fit/solN/px_params.csv>`



Plots
*****



Dense sim plots
===============



.. thumbnail:: images/fit_dense/000001.svg
    :width: 200px


.. thumbnail:: images/fit_dense/000002.svg
    :width: 200px


.. thumbnail:: images/fit_dense/000003.svg
    :width: 200px


Alternatively see :ref:`blq_pk_dense_sim_plots`

Comparison
**********



Compare Main f[X]
=================


===============  ================  ==============  =============  ============
Variable Name      Starting Value    Fitted Value    Prop Change    Abs Change
===============  ================  ==============  =============  ============
f[KA]                      1.0000          0.1957         0.8043        0.8043
f[CL]                      1.0000          2.0245         1.0245        1.0245
f[V1]                     20.0000         47.0079         1.3504       27.0079
===============  ================  ==============  =============  ============

Compare Noise f[X]
==================


===============  ================  ==============  =============  ============
Variable Name      Starting Value    Fitted Value    Prop Change    Abs Change
===============  ================  ==============  =============  ============
f[PNOISE]                  0.1000          0.1389         0.3893        0.0389
===============  ================  ==============  =============  ============

Compare Variance f[X]
=====================


================  ================  ==============  =============  ============
Variable Name       Starting Value    Fitted Value    Prop Change    Abs Change
================  ================  ==============  =============  ============
f[KA_isv]                   0.0500          0.1365         1.7292        0.0865
f[KA_isv;CL_isv]            0.0100          0.0159         0.5945        0.0059
f[KA_isv;V1_isv]            0.0100          0.0617         5.1652        0.0517
f[CL_isv;KA_isv]            0.0100          0.0159         0.5945        0.0059
f[CL_isv]                   0.0500          0.0390         0.2190        0.0110
f[CL_isv;V1_isv]            0.0100          0.0200         1.0026        0.0100
f[V1_isv;KA_isv]            0.0100          0.0617         5.1652        0.0517
f[V1_isv;CL_isv]            0.0100          0.0200         1.0026        0.0100
f[V1_isv]                   0.0500          0.1256         1.5118        0.0756
================  ================  ==============  =============  ============