pk_solution: PK solution over dosing cycle

View source: R/pk_solution.R

pk_solutionR Documentation

PK solution over dosing cycle

Description

The 'pk_solution' function impelments a piecewise solution to the two-compartment model, taking into account the sequence of dosing events:

Usage

pk_solution(k_10, k_12, k_21, v_1, ivt, init = 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

ivt

List with containing start of infusion times (h), end of infusion times (h), and rate of infusion (g/h) at each dose

init

Initial concentration of drug in c(central, peripheral) compartments

Value

A function that will compute concentration of drug in the body given time since first infusion.


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