: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

    -727.7713


which required N. iterations and took 145.15 seconds

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

.. code-block:: pyml

    f[KA] = 0.2224
    f[CL] = 1.9543
    f[V1] = 51.0073
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.0697, 0.0196, 0.0527 ],
        [ 0.0196, 0.0115, 0.0117 ],
        [ 0.0527, 0.0117, 0.1872 ],
    ]
    f[PNOISE] = 0.1473
    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      Fitted Value    Starting Value    Prop Change    Abs Change
===============  ==============  ================  =============  ============
f[KA]                    0.2224            1.0000         0.7776        0.7776
f[CL]                    1.9543            1.0000         0.9543        0.9543
f[V1]                   51.0073           20.0000         1.5504       31.0073
===============  ==============  ================  =============  ============

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


===============  ==============  ================  =============  ============
Variable Name      Fitted Value    Starting Value    Prop Change    Abs Change
===============  ==============  ================  =============  ============
f[PNOISE]                0.1473            0.1000         0.4735        0.0473
===============  ==============  ================  =============  ============

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


================  ==============  ================  =============  ============
Variable Name       Fitted Value    Starting Value    Prop Change    Abs Change
================  ==============  ================  =============  ============
f[KA_isv]                 0.0697            0.0500         0.3947        0.0197
f[KA_isv;CL_isv]          0.0196            0.0100         0.9568        0.0096
f[KA_isv;V1_isv]          0.0527            0.0100         4.2744        0.0427
f[CL_isv;KA_isv]          0.0196            0.0100         0.9568        0.0096
f[CL_isv]                 0.0115            0.0500         0.7697        0.0385
f[CL_isv;V1_isv]          0.0117            0.0100         0.1715        0.0017
f[V1_isv;KA_isv]          0.0527            0.0100         4.2744        0.0427
f[V1_isv;CL_isv]          0.0117            0.0100         0.1715        0.0017
f[V1_isv]                 0.1872            0.0500         2.7431        0.1372
================  ==============  ================  =============  ============