# Body Weight Covariate

[Generated automatically as a Tutorial summary]

## Inputs

### Description

Name: | weight_covariate
Title: | Body Weight Covariate
Author: | Wright Dose Ltd
Abstract: |

One compartment model with absorption compartment and CL/V parametrisation.
There are no random effects here. Each individual just has a different weight.
The weight is a covariate for the m[CL] clearance parameter for each individual.
Only the f[WT_EFFECT] and f[V] fixed effect parameters are estimated, other f[X] are fixed.

Keywords: | one compartment model; dep_one_cmp_cl; weight; covariate effect
Input Script: | `weight_covariate.pyml`
Diagram: |

Failed to create compartment diagram

### True f[X] values

    f[KA] = 0.3
    f[CL] = 3
    f[V] = 20
    f[PNOISE] = 0.1
    f[ANOISE] = 0.05
    f[WT_EFFECT] = 0.75

### Starting f[X] values

    f[KA] = 0.3
    f[CL] = 3
    f[V] = 15
    f[PNOISE] = 0.1
    f[ANOISE] = 0.05
    f[WT_EFFECT] = 1

## Outputs

### Generating and Fitting Summaries

- Gen: Body Weight Covariate (gen)
- Fit: Body Weight Covariate (fit)

### Fitted f[X] values

    f[KA] = 0.3
    f[CL] = 3
    f[V] = 20.261
    f[PNOISE] = 0.1
    f[ANOISE] = 0.05
    f[WT_EFFECT] = 0.66554

## Plots

### Dense comp plots

Alternatively see All dense_comp graph plots

## Comparison

### True objective value

    -483.371814681

### Final fitted objective value

    -486.079811289

### Compare Main f[X]

Name | Initial | Fitted | True | Prop. Error | Abs. Error
--- | --- | --- | --- | --- | ---
f[V] | 15 | 20.3 | 20 | 1.30% | 2.61e-01
f[WT_EFFECT] | 1 | 0.666 | 0.75 | 11.26% | 8.45e-02

### Compare Noise f[X]

No Noise f[X] values to compare.

### Compare Variance f[X]

No Variance f[X] values to compare.