# Sine circadian model

[Generated automatically as a Tutorial summary]

## Inputs

### Description

Name: | circ_sin
Title: | Sine circadian model
Author: | Wright Dose Ltd
Abstract: |

A PD Model based on the amount of drug in the body.
The PD model uses a sine function which simulates a circadian rhythm for the generation of a biomarker.
The amount in the central compartment is determined by CL and V, PK patameters , which have been previosly estimated for each individual.
The amount in the central compartment influences the rate of production of a biomarker.

Keywords: | PD; Pharmacodynamics; sine function; Circadian rhythm
Input Script: | `circ_sin_tut.pyml`
Diagram: |

Failed to create compartment diagram

### True f[X] values

    f[AMP] = 2
    f[INT] = 8
    f[KOUT] = 0.05
    f[ANOISE] = 3

### Starting f[X] values

    f[AMP] = 3
    f[INT] = 16
    f[KOUT] = 0.1
    f[ANOISE] = 5

## Outputs

### Generating and Fitting Summaries

- Gen: Sine circadian model (gen)
- Fit: Sine circadian model (fit)

### Fitted f[X] values

    f[AMP] = 1.9943
    f[INT] = 19.843
    f[KOUT] = 0.049801
    f[ANOISE] = 3.0603

## Plots

### Dense comp plots

Alternatively see All dense_comp graph plots

## Comparison

### True objective value

    815.056221082

### Final fitted objective value

    810.264293685

### Compare Main f[X]

Name | Initial | Fitted | True | Prop. Error | Abs. Error
--- | --- | --- | --- | --- | ---
f[AMP] | 3 | 1.99 | 2 | 0.28% | 5.69e-03
f[INT] | 16 | 19.8 | 8 | 148.04% | 1.18e+01
f[KOUT] | 0.1 | 0.0498 | 0.05 | 0.40% | 1.99e-04

### Compare Noise f[X]

Name | Initial | Fitted | True | Prop. Error | Abs. Error
--- | --- | --- | --- | --- | ---
f[ANOISE] | 5 | 3.06 | 3 | 2.01% | 6.03e-02

### Compare Variance f[X]

No Variance f[X] values to compare.