Learn R Programming

wnl (version 0.8.2)

nComp: Get Amounts of Each Compartments using Lambdas and Coefficients of Multi-compartment Model

Description

It calculates using multi-compartment model.

Usage

nComp(Sol, Ka=0, DH)

Value

This returns a table with the gut and the other compartment columns

Arguments

Sol

Solution list of lambdas and coefficients

Ka

Absorption rate constant

DH

Expanded dosing history table

Author

Kyun-Seop Bae <k@acr.kr>

Details

First compartment is the gut compartment for oral dosing. IV bolus and infusion dosing should be done at the second compartment. If a bolus dose was given at time T, it is reflected at times of larger than T. This is more close to real observation. ADAPT does like this, but NONMEM does not.

Examples

Run this code
DAT
DAT2 = ExpandDH(DAT)
Sol = SolComp2(K10=0.1, K12=3, K21=1)
X2 = nComp(Sol, Ka=1, DAT2)
X2
matplot(DAT2[, "TIME"], X2, type="l")

Run the code above in your browser using DataLab