:orphan: 





.. _builtin_gen_example_gen:



First order absorption model with peripheral compartment
########################################################

[Generated automatically as a Generation summary]

Inputs
******



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

:Name: builtin_gen_example

:Title: First order absorption model with peripheral compartment

:Author: J.R. Hartley

:Abstract: 

| A two compartment PK model with bolus dose and
| first order absorption, similar to a Nonmem advan4trans4 model.

:Keywords: generating; pk; advan4; dep_two_cmp; first order

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

:Diagram: 


.. thumbnail:: builtin_gen_example.pyml_output/gen/compartment_diagram.svg
    :width: 200px


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

.. code-block:: pyml

    f[KA] = 0.2
    f[CL] = 2
    f[V1] = 50
    f[Q] = 1
    f[V2] = 80
    f[KA_isv,CL_isv,V1_isv,Q_isv,V2_isv] = [
        [ 0.1, 0.01, 0.01, 0.01, 0.01 ],
        [ 0.01, 0.03, -0.01, 0.02, 0.02 ],
        [ 0.01, -0.01, 0.09, 0.01, 0.01 ],
        [ 0.01, 0.02, 0.01, 0.07, 0.01 ],
        [ 0.01, 0.02, 0.01, 0.01, 0.05 ]
    ]
    f[PNOISE] = 0.15



Outputs
*******



Generated parameter .csv files
==============================


:Fixed Effects: :download:`fx_params.csv (gen) <builtin_gen_example.pyml_output/gen/fx_params.csv>`

:Random Effects: :download:`rx_params.csv (gen) <builtin_gen_example.pyml_output/gen/rx_params.csv>`

:Model params: :download:`mx_params.csv (gen) <builtin_gen_example.pyml_output/gen/mx_params.csv>`

:State values: :download:`sx_params.csv (gen) <builtin_gen_example.pyml_output/gen/sx_params.csv>`

:Predictions: :download:`px_params.csv (gen) <builtin_gen_example.pyml_output/gen/px_params.csv>`


:Synthetic Data: :download:`synthetic_data.csv (gen) <synthetic_data.csv>`


Plots
*****



Dense sim plots
===============



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


.. thumbnail:: images/gen_dense/000001.svg
    :width: 200px


.. thumbnail:: images/gen_dense/000002.svg
    :width: 200px


Alternatively see :ref:`builtin_gen_example_dense_sim_plots`