calc_derived: Calculate derived pharmacokinetic parameters for a 1-, 2-, or...

Description Usage Arguments Value Author(s) References Examples

View source: R/calc_derived.R

Description

Calculate derived pharmacokinetic parameters for a 1-, 2-, or 3-compartment linear model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
calc_derived(..., verbose = FALSE)

calc_derived_1cpt(
  CL,
  V = NULL,
  V1 = NULL,
  ka = NULL,
  tlag = NULL,
  type = "all",
  sigdig = 5
)

calc_derived_2cpt(
  CL,
  V1 = NULL,
  V2,
  Q2 = NULL,
  V = NULL,
  Q = NULL,
  ka = NULL,
  tlag = NULL,
  type = "all",
  sigdig = 5
)

calc_derived_3cpt(
  CL,
  V1 = NULL,
  V2,
  V3,
  Q2 = NULL,
  Q3,
  V = NULL,
  Q = NULL,
  ka = NULL,
  tlag = NULL,
  type = "all",
  sigdig = 5
)

Arguments

...

Passed to the other calc_derived_*() functions.

verbose

For calc_derived(), provide a message indicating the type of model detected.

CL

Clearance (volume per time units, e.g. L/h)

V1, V

Central volume of distribution (volume units, e.g. L). Values are synonyms; use only one.

ka

Absorption rate (inverse time units, e.g. 1/h)

tlag

Absorption lag time (time units, e.g. h)

type

Parameters to return. Default is "all". If not "all", this may be a vector from the names of the return value list.

sigdig

Number of significant digits to be returned. Default is 5.

V2

First peripheral volume of distribution (volume units, e.g. L)

Q2, Q

Intercompartmental clearance from central to first peripheral compartment (volume per time units, e.g. L/h). Values are synonyms; use only one.

V3

Second peripheral volume of distribution (volume units, e.g. L)

Q3

Intercompartmental clearance from central to second peripheral compartment (volume per time units, e.g. L/h)

Value

Return a list of derived PK parameters for a 1-, 2-, or 3-compartment linear model given provided clearances and volumes based on the type.

The input parameters with standardized names (V1, V2, V3, CL, Q2, and Q3) are also returned in the list, and if provided, additional PK parameters of 'ka' and 'lag' are also returned in the list. All inputs may be scalars or vectors.

Author(s)

Justin Wilkins, justin.wilkins@occams.com

References

Shafer S. L. CONVERT.XLS

Rowland M, Tozer TN. Clinical Pharmacokinetics and Pharmacodynamics: Concepts and Applications (4th). Lippincott Williams & Wilkins, Philadelphia, 2010.

Examples

1
2
3
4
params <- calc_derived(CL=29.4, V1=23.4, V2=114, V3=4614, Q2=270, Q3=73)
params <- calc_derived_1cpt(CL=16, V=25)
params <- calc_derived_2cpt(CL=16, V1=25, V2=50, Q=0.5)
params <- calc_derived_3cpt(CL=29.4, V1=23.4, V2=114, V3=4614, Q2=270, Q3=73)

Example output

Loading required package: MASS
Loading required package: stringr
Loading required package: magrittr
Loading required package: data.tree
Loading required package: DiagrammeR

pmxTools documentation built on Aug. 27, 2020, 1:10 a.m.