:orphan: 





.. _direct_pd_simul_tut:



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

[Generated automatically as a Tutorial summary]

Inputs
******



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

:Name: direct_pd_simul

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

:Author: Wright Dose Ltd

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

Failed to create compartment diagram

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

.. code-block:: pyml

    f[CL] = 2
    f[V] = 50
    f[BASE] = 800
    f[KOUT] = 0.03
    f[PK_ANOISE] = 0.5
    f[PD_ANOISE] = 0.3



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

.. code-block:: pyml

    f[CL] = 5
    f[V] = 15
    f[BASE] = 500
    f[KOUT] = 0.1
    f[PK_ANOISE] = 5
    f[PD_ANOISE] = 5



Outputs
*******



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

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

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

.. code-block:: pyml

    f[CL] = 1.9992
    f[V] = 51.005
    f[BASE] = 799.98
    f[KOUT] = 0.030588
    f[PK_ANOISE] = 0.49676
    f[PD_ANOISE] = 0.25265



Plots
*****



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



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


Alternatively see :ref:`direct_pd_simul_dense_comp_plots`

Comparison
**********



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


.. code-block:: pyml

    -203.759528569



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


.. code-block:: pyml

    -208.115820594



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.