:orphan: 





.. _circ_sin_tut:



Sine circadian model
####################

[Generated automatically as a Tutorial summary]

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


:Name: circ_sin

:Title: Sine circadian model

:Author: PoPy for PK/PD

:Abstract: 

| A PD Model based on the amount of drug in the body.
| The PD model uses a sine function which simulates a circadian rhythm for the generation of a biomarker.
| The amount in the central compartment is determined by CL and V, PK patameters , which have been previosly estimated for each individual.
| The amount in the central compartment influences the rate of production of a biomarker.

:Keywords: PD; Pharmacodynamics; sine function; Circadian rhythm

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

:Diagram: 


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


Comparison
**********



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


.. code-block:: pyml

    815.0562



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


.. code-block:: pyml

    811.9569



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[AMP] = 2.0018
    f[INT] = 7.8714
    f[KOUT] = 0.0500
    f[ANOISE] = 3.0759



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


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


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


* Gen: :ref:`circ_sin_gen` (gen)
* Fit: :ref:`circ_sin_fit` (fit)

Inputs
******



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

.. code-block:: pyml

    f[AMP] = 2.0000
    f[INT] = 8.0000
    f[KOUT] = 0.0500
    f[ANOISE] = 3.0000



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

.. code-block:: pyml

    f[AMP] = 3.0000
    f[INT] = 16.0000
    f[KOUT] = 0.1000
    f[ANOISE] = 5.0000

