pk_basic_solution: Two-compartment model solution

View source: R/pk_basic_solution.R

pk_basic_solutionR Documentation

Two-compartment model solution

Description

Calculates the solution of a two-comparment model.

Usage

pk_basic_solution(k_10, k_12, k_21, v_1, k_R, c_0 = c(0, 0))

Arguments

k_10

Elimination rate from central compartment

k_12

Elimination rate from central to peripheral compartment

k_21

Elimination rate from peripheral to central compartment

v_1

Volume of central compartment

k_R

Rate of infusion (g/h)

c_0

Initial concentrations of c(central, peripheral) compartments

Details

The 'pk_basic_solution' function implements the two-compartment model solution for fixed parameters k_10, k_12, k_21, v_1, k_R, and c_0 (initial concentrations). This function is based on the solution to a nonhomogeneous linear system of ODEs. The basic solution could also be computed using numerical integration, which is commonly used for more complicated models.

Value

List containing concentration in central and peripheral compartments, respectively.


hlweeks/pkpredict documentation built on Oct. 29, 2023, 6:08 a.m.