:orphan: 





.. _direct_pd_simul_tut:



Direct PD Model Simultaneous PK/PD Parameter fit
################################################

[Generated automatically as a Tutorial summary]

Model Description
*****************


:Name: direct_pd_simul

:Title: Direct PD Model Simultaneous PK/PD Parameter fit

:Author: PoPy for PK/PD

:Abstract: 

| A simple direct PD Model, based on the amount of drug in the body. That simultaneously fits PK and PD parameters.
| The amount in the central compartment is determined by K, which has been previously estimated for each individual.
| The amount in the central compartment influences the rate of removal of a biomarker (KOUT).

:Keywords: pd; one compartment model; direct

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

:Diagram: 


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


Comparison
**********



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


.. code-block:: pyml

    -203.7595



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


.. code-block:: pyml

    386.5798



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]
=====================


No Variance f[X] values to compare.

Outputs
*******



Fitted f[X] values (after fitting)
==================================


.. code-block:: pyml

    f[CL] = 2.0038
    f[V] = 48.1868
    f[BASE] = 799.1967
    f[KOUT] = 0.0288
    f[PK_ANOISE] = 0.5088
    f[PD_ANOISE] = 8.2246



Generated data .csv file
========================


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


Gen and Fit Summaries
=====================


* Gen: :ref:`direct_pd_simul_gen` (gen)
* Fit: :ref:`direct_pd_simul_fit` (fit)

Inputs
******



True f[X] values (for simulation)
=================================

.. code-block:: pyml

    f[CL] = 2.0000
    f[V] = 50.0000
    f[BASE] = 800.0000
    f[KOUT] = 0.0300
    f[PK_ANOISE] = 0.5000
    f[PD_ANOISE] = 0.3000



Starting f[X] values (before fitting)
=====================================

.. code-block:: pyml

    f[CL] = 5.0000
    f[V] = 15.0000
    f[BASE] = 500.0000
    f[KOUT] = 0.1000
    f[PK_ANOISE] = 5.0000
    f[PD_ANOISE] = 5.0000

