: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.9922


which required 1.29 iterations and took 1221.65 seconds

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

.. code-block:: pyml

    f[KA] = 0.1954
    f[CL] = 2.0254
    f[V1] = 46.9680
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.1374, 0.0157, 0.0621 ],
        [ 0.0157, 0.0392, 0.0200 ],
        [ 0.0621, 0.0200, 0.1254 ],
    ]
    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.1954         0.8046        0.8046
f[CL]                      1.0000          2.0254         1.0254        1.0254
f[V1]                     20.0000         46.9680         1.3484       26.9680
===============  ================  ==============  =============  ============

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


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

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


================  ================  ==============  =============  ============
Variable Name       Starting Value    Fitted Value    Prop Change    Abs Change
================  ================  ==============  =============  ============
f[KA_isv]                   0.0500          0.1374         1.7485        0.0874
f[KA_isv;CL_isv]            0.0100          0.0157         0.5742        0.0057
f[KA_isv;V1_isv]            0.0100          0.0621         5.2148        0.0521
f[CL_isv;KA_isv]            0.0100          0.0157         0.5742        0.0057
f[CL_isv]                   0.0500          0.0392         0.2170        0.0108
f[CL_isv;V1_isv]            0.0100          0.0200         0.9958        0.0100
f[V1_isv;KA_isv]            0.0100          0.0621         5.2148        0.0521
f[V1_isv;CL_isv]            0.0100          0.0200         0.9958        0.0100
f[V1_isv]                   0.0500          0.1254         1.5077        0.0754
================  ================  ==============  =============  ============