nComp: Get Amounts of Each Compartments using Lambdas and...

View source: R/nComp.R

nCompR Documentation

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)

Arguments

Sol

Solution list of lambdas and coefficients

Ka

Absorption rate constant

DH

Expanded dosing history table

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.

Value

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

Author(s)

Kyun-Seop Bae <k@acr.kr>

Examples

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")

wnl documentation built on April 25, 2023, 9:11 a.m.