It calculates AUC and AUMC using linear trapezoidal method

LinAUC(x, y)

Arguments

x

vector values of independent variable, usually time

y

vector values of dependent variable, usually concentration

Details

This function returns AUC and AUMC by linear trapezoidal method.

Value

AUC

area under the curve

AUMC

area under the first moment curve

References

  1. Gabrielsson J, Weiner D. Pharmacokinetic and Pharmacodynamic Data Analysis - Concepts and Applications. 5th ed. 2016.

  2. Shargel L, Yu A. Applied Biopharmaceutics and Pharmacokinetics. 7th ed. 2015.

  3. Rowland M, Tozer TN. Clinical Pharmacokinetics and Pharmacodynamics - Concepts and Applications. 4th ed. 2011.

  4. Gibaldi M, Perrier D. Pharmacokinetics. 2nd ed. revised and expanded. 1982.

See also

Examples

LinAUC(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"])
#> AUC AUMC #> 148.923 1459.071
AUC(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"]) # compare the last line
#> [,1] [,2] #> [1,] 0.00000 0.000000 #> [2,] 0.44750 0.088750 #> [3,] 1.95310 0.801534 #> [4,] 6.64735 5.065382 #> [5,] 15.71935 19.138321 #> [6,] 32.13535 66.198241 #> [7,] 42.97695 114.461665 #> [8,] 58.25290 206.281512 #> [9,] 72.75650 322.298798 #> [10,] 92.45055 528.521903 #> [11,] 148.92305 1459.071104