:orphan: 





.. _blq_pk_tut:



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

[Generated automatically as a Tutorial 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_tut.pyml <blq_pk_tut.pyml>`

:Diagram: 


.. thumbnail:: ./compartment_diagram.svg
    :width: 200px


True f[X] values
================

.. code-block:: pyml

    f[KA] = 0.2000
    f[CL] = 2.0000
    f[V1] = 50.0000
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.1000, 0.0200, 0.0100 ],
        [ 0.0200, 0.0300, 0.0200 ],
        [ 0.0100, 0.0200, 0.0900 ],
    ]
    f[PNOISE] = 0.1500
    f[ANOISE] = 0.0100



Starting f[X] values
====================

.. 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
*******



Generating and Fitting Summaries
================================

* Gen: :ref:`blq_pk_gen` (gen)
* Fit: :ref:`blq_pk_fit` (fit)

Fitted f[X] values
==================

.. code-block:: pyml

    f[KA] = 0.1950
    f[CL] = 2.0509
    f[V1] = 48.4223
    f[KA_isv,CL_isv,V1_isv] = [
        [ 0.0137, 0.0118, -0.0107 ],
        [ 0.0118, 0.0221, 0.0270 ],
        [ -0.0107, 0.0270, 0.1372 ],
    ]
    f[PNOISE] = 0.1486
    f[ANOISE] = 0.0100



Plots
*****



Dense comp plots
================



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


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


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


Alternatively see :ref:`blq_pk_dense_comp_plots`

Comparison
**********



True objective value
====================


.. code-block:: pyml

    -725.8063



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


.. code-block:: pyml

    -740.9643



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



.. csv-table:: 
    :file: fx_comp_main.csv
    :header-rows: 1


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



.. csv-table:: 
    :file: fx_comp_noise.csv
    :header-rows: 1


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



.. csv-table:: 
    :file: fx_comp_variance.csv
    :header-rows: 1
