Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

AUC

Calculate Area Under the Curve (AUC) and Area Under the first Moment Curve (AUMC) in a table format


Description

Calculate Area Under the Curve(AUC) and the first Moment Curve(AUMC) in two ways; 'linear trapezoidal method' or 'linear-up and log-down' method. Return a table of cumulative values.

Usage

AUC(x, y, down = "Linear")

Arguments

x

vector values of independent variable, usually time

y

vector values of dependent variable, usually concentration

down

either of "Linear" or "Log" to indicate the way to calculate AUC and AUMC

Details

down="Linear" means linear trapezoidal rule with linear interpolation. down="Log" means linear-up and log-down method.

Value

Table with two columns, AUC and AUMC; the first column values are cumulative AUCs and the second column values cumulative AUMCs.

Author(s)

Kyun-Seop Bae <k@acr.kr>

References

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

See Also

Examples

AUC(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"])
AUC(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"], down="Log")

pkr

Pharmacokinetics in R

v0.1.2
GPL-3
Authors
Kyun-Seop Bae [aut], Jee Eun Lee [aut]
Initial release
2018-06-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.