# Demonstration of CWRES diagnostic

[Generated automatically as a Fitting summary]

## Model Description

Name:

  cwres_emax_correct_model

Title:

  Demonstration of CWRES diagnostic

Author:

  PoPy for PK/PD

Abstract:

Demonstration of CWRES diagnostic on Hooker’s Emax model with
correct population parameters

Keywords:

  cwres; emax

Input Script:

  `cwres_emax_correct_model_fit.pyml`

Diagram:

## 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]

Variable Name | Starting Value | Fitted Value | Abs Change | Prop Change
--- | --- | --- | --- | ---
f[Hill] | 4.5000 | 4.5000 | 0.0000 | 0.0000

### 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

| allOBS_vs_TIME
| CWRES(Effect)_wrt_IPRED(Drug)
| CWRES(Effect)_wrt_IPRED(Effect)
| WRES(Effect)_wrt_PPRED(Drug)
| WRES(Effect)_wrt_PPRED(Effect)

## Outputs

### Final objective value

    22543.0278

which required 1. iterations and took 11.60 seconds

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

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

### Fitted parameter .csv files

Fixed Effects:

  `fx_params.csv (fit)`

Random Effects:

  `rx_params.csv (fit)`

Model params:

  `mx_params.csv (fit)`

State values:

  `sx_params.csv (fit)`

Predictions:

  `px_params.csv (fit)`

Likelihoods:

  `lx_params.csv (fit)`

## Inputs

Input Data:

  `cx_obs_params.csv`

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

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