:orphan: 





.. _fit_example1_fit:



Simple Fit Example
##################

[Generated automatically as a Fitting summary]

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


:Name: fit_example1

:Title: Simple Fit Example

:Author: PoPy for PK/PD

:Abstract: 

| One compartment model with elimination rate constant KE.

:Keywords: one compartment model; iv_one_cmp_k

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

:Diagram: 


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


Comparison
**********



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


===============  ================  ==============  ============  =============
Variable Name      Starting Value    Fitted Value    Abs Change    Prop Change
===============  ================  ==============  ============  =============
f[KE]                      0.0500          0.0968        0.0468         0.9356
===============  ================  ==============  ============  =============

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


===============  ================  ==============  ============  =============
Variable Name      Starting Value    Fitted Value    Abs Change    Prop Change
===============  ================  ==============  ============  =============
f[PNOISE]                  0.1000          0.2135        0.1135         1.1352
===============  ================  ==============  ============  =============

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


===============  ================  ==============  ============  =============
Variable Name      Starting Value    Fitted Value    Abs Change    Prop Change
===============  ================  ==============  ============  =============
f[KE_isv]                  0.1000          0.0160        0.0840         0.8398
===============  ================  ==============  ============  =============

Individual simulated (sim) plots
================================



.. thumbnail:: images/fit_sim_grph_outputs/indOBS_vs_TIME/000001.svg
    :width: 200px


.. thumbnail:: images/fit_sim_grph_outputs/indOBS_vs_TIME/000002.svg
    :width: 200px


.. thumbnail:: images/fit_sim_grph_outputs/indOBS_vs_TIME/000003.svg
    :width: 200px


Alternatively see :ref:`fit_example1_simulated_sim_plots`

Population simulated (sim) plots
================================


(No population graphs were requested.)

Population simulated (msim) plots
=================================


.. list-table:: 
    :width: 90%

    * - .. thumbnail:: images/fit_msim_vpc_outputs/allOBS_vs_TIME_VPC/vpc.svg
            :width: 200px
      - allOBS_vs_TIME_VPC

Outputs
*******



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

.. code-block:: pyml

    303.0548


which required 1.15 iterations and took 58.56 seconds

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


.. code-block:: pyml

    f[KE] = 0.0968
    f[PNOISE] = 0.2135
    f[KE_isv] = 0.0160



Fitted parameter .csv files
===========================


:Fixed Effects: :download:`fx_params.csv (fit) <fit_example1.pyml_output/solN/fx_params.csv>`

:Random Effects: :download:`rx_params.csv (fit) <fit_example1.pyml_output/solN/rx_params.csv>`

:Model params: :download:`mx_params.csv (fit) <fit_example1.pyml_output/solN/mx_params.csv>`

:State values: :download:`sx_params.csv (fit) <fit_example1.pyml_output/solN/sx_params.csv>`

:Predictions: :download:`px_params.csv (fit) <fit_example1.pyml_output/solN/px_params.csv>`

:Likelihoods: :download:`lx_params.csv (fit) <fit_example1.pyml_output/solN/lx_params.csv>`



Inputs
******


:Input Data: :download:`fit_example1_data.csv <fit_example1_data.csv>`


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


.. code-block:: pyml

    f[KE] = 0.0500
    f[PNOISE] = 0.1000
    f[KE_isv] = 0.1000

