:orphan: 





.. _cwres_emax_misspecified_model_fit:



Demonstration of CWRES diagnostic
#################################

[Generated automatically as a Fitting summary]

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


:Name: cwres_emax_misspecified_model

:Title: Demonstration of CWRES diagnostic

:Author: PoPy for PK/PD

:Abstract: 

| Demonstration of CWRES diagnostic on Hooker's Emax model with
| incorrect population parameters

:Keywords: cwres; emax

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

:Diagram: 


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


Comparison
**********



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


===============  ================  ==============  ============  =============
Variable Name      Starting Value    Fitted Value    Abs Change    Prop Change
===============  ================  ==============  ============  =============
f[EMAX]                  100.0000        100.0000        0.0000         0.0000
f[C50]                    20.0000         20.0000        0.0000         0.0000
===============  ================  ==============  ============  =============

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




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


===============  ================  ==============  ============  =============
Variable Name      Starting Value    Fitted Value    Abs Change    Prop Change
===============  ================  ==============  ============  =============
f[EMAX_isv]                0.5000          0.5000        0.0000         0.0000
f[C50_isv]                 0.5000          0.5000        0.0000         0.0000
===============  ================  ==============  ============  =============

Population observed (fit) plots
===============================


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

    * - .. thumbnail:: images/fit_grph_outputs/allOBS_vs_TIME/comb_spag.svg
            :width: 200px
      - allOBS_vs_TIME
    * - .. thumbnail:: images/fit_grph_outputs/CWRES(Effect)_wrt_IPRED(Drug)/pop_scatter.svg
            :width: 200px
      - CWRES(Effect)_wrt_IPRED(Drug)
    * - .. thumbnail:: images/fit_grph_outputs/CWRES(Effect)_wrt_IPRED(Effect)/pop_scatter.svg
            :width: 200px
      - CWRES(Effect)_wrt_IPRED(Effect)
    * - .. thumbnail:: images/fit_grph_outputs/WRES(Effect)_wrt_PPRED(Drug)/pop_scatter.svg
            :width: 200px
      - WRES(Effect)_wrt_PPRED(Drug)
    * - .. thumbnail:: images/fit_grph_outputs/WRES(Effect)_wrt_PPRED(Effect)/pop_scatter.svg
            :width: 200px
      - WRES(Effect)_wrt_PPRED(Effect)

Outputs
*******



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

.. code-block:: pyml

    28300.1400


which required 1. iterations and took 12.32 seconds

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


.. code-block:: pyml

    f[EMAX] = 100.0000
    f[C50] = 20.0000
    f[Hill] = 1.0000
    f[EMAX_isv] = 0.5000
    f[C50_isv] = 0.5000



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


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

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

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

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

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

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



Inputs
******


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


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


.. code-block:: pyml

    f[EMAX] = 100.0000
    f[C50] = 20.0000
    f[Hill] = 1.0000
    f[EMAX_isv] = 0.5000
    f[C50_isv] = 0.5000

