:orphan: 





.. _pa_gen_pa_fit_tut:



Model containing both proportional and additive error
#####################################################

[Generated automatically as a Tutorial summary]

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


:Name: pa_gen_pa_fit

:Title: Model containing both proportional and additive error

:Author: PoPy for PK/PD

:Abstract: 

| One compartment model with a depot leading to a central compartment.
| This model contains both proportional and additive error.

:Keywords: one compartment model; one_two_cmp_cl; proportional and additive error

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

:Diagram: 


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


Comparison
**********



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


.. code-block:: pyml

    -395.5169



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


.. code-block:: pyml

    -396.6598



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


No Main f[X] values to compare.

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[PNOISE_STD] = 0.0951
    f[ANOISE_STD] = 0.0453



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


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


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


* Gen: :ref:`pa_gen_pa_fit_gen` (gen)
* Fit: :ref:`pa_gen_pa_fit_fit` (fit)

Inputs
******



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

.. code-block:: pyml

    f[PNOISE_STD] = 0.1000
    f[ANOISE_STD] = 0.0500



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

.. code-block:: pyml

    f[PNOISE_STD] = 0.5000
    f[ANOISE_STD] = 0.2500

