# Demonstration of CWRES diagnostic

[Generated automatically as a Tutorial 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:

  `cwres_emax_misspecified_model.pyml`

Diagram:

## Comparison

### True objective value

    28300.1400

### Final fitted objective value

    28300.1400

### Compare Main f[X]

Name | Initial | Fitted | True | Abs. Error | Prop. Error
--- | --- | --- | --- | --- | ---
f[EMAX] | 100 | 100 | 100 | 0.00e+00 | 0.00%
f[C50] | 20 | 20 | 20 | 0.00e+00 | 0.00%

### Compare Noise f[X]

No Noise f[X] values to compare.

### Compare Variance f[X]

Name | Initial | Fitted | True | Abs. Error | Prop. Error
--- | --- | --- | --- | --- | ---
f[EMAX_isv] | 0.5 | 0.5 | 0.5 | 0.00e+00 | 0.00%
f[C50_isv] | 0.5 | 0.5 | 0.5 | 0.00e+00 | 0.00%

## Outputs

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

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

### Generated data .csv file

Synthetic Data:

  `synthetic_data.csv`

### Gen and Fit Summaries

- Gen: Demonstration of CWRES diagnostic (gen)

- Fit: Demonstration of CWRES diagnostic (fit)

## Inputs

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

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

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

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