# Direct PD Model Simultaneous PK/PD Parameter fit

[Generated automatically as a Tutorial summary]

## Inputs

### Description

Name: | direct_pd_simul
Title: | Direct PD Model Simultaneous PK/PD Parameter fit
Author: | Wright Dose Ltd
Abstract: |

A simple direct PD Model, based on the amount of drug in the body. That simultaneously fits PK and PD parameters.
The amount in the central compartment is determined by K, which has been previously estimated for each individual.
The amount in the central compartment influences the rate of removal of a biomarker (KOUT).

Keywords: | pd; one compartment model; direct
Input Script: | `direct_pd_simul_tut.pyml`
Diagram: |

Failed to create compartment diagram

### True f[X] values

    f[CL] = 2
    f[V] = 50
    f[BASE] = 800
    f[KOUT] = 0.03
    f[PK_ANOISE] = 0.5
    f[PD_ANOISE] = 0.3

### Starting f[X] values

    f[CL] = 5
    f[V] = 15
    f[BASE] = 500
    f[KOUT] = 0.1
    f[PK_ANOISE] = 5
    f[PD_ANOISE] = 5

## Outputs

### Generating and Fitting Summaries

- Gen: Direct PD Model Simultaneous PK/PD Parameter fit (gen)
- Fit: Direct PD Model Simultaneous PK/PD Parameter fit (fit)

### Fitted f[X] values

    f[CL] = 1.9992
    f[V] = 51.005
    f[BASE] = 799.98
    f[KOUT] = 0.030588
    f[PK_ANOISE] = 0.49676
    f[PD_ANOISE] = 0.25265

## Plots

### Dense comp plots

Alternatively see All dense_comp graph plots

## Comparison

### True objective value

    -203.759528569

### Final fitted objective value

    -208.115820594

### Compare Main f[X]

Name | Initial | Fitted | True | Prop. Error | Abs. Error
--- | --- | --- | --- | --- | ---
f[CL] | 5 | 2… | 2 | 0.04% | 8.45e-04
f[V] | 15 | 51 | 50 | 2.01% | 1.01e+00
f[BASE] | 500 | 800… | 800 | 0.00% | 2.34e-02
f[KOUT] | 0.1 | 0.0306 | 0.03 | 1.96% | 5.88e-04

### Compare Noise f[X]

Name | Initial | Fitted | True | Prop. Error | Abs. Error
--- | --- | --- | --- | --- | ---
f[PK_ANOISE] | 5 | 0.497 | 0.5 | 0.65% | 3.24e-03
f[PD_ANOISE] | 5 | 0.253 | 0.3 | 15.78% | 4.74e-02

### Compare Variance f[X]

No Variance f[X] values to compare.