gAUC: General Area Under the Curve

View source: R/gAUC.R

gAUCR Documentation

General Area Under the Curve

Description

General AUC function for Emax, TEmax and AUCs

Usage

gAUC(x, y, Ymax = "Emax", XofYmax = "TEmax", AUCname = "AUEClast", iAUC = "", 
     Outer = "NEAREST")

Arguments

x

usually time

y

usually concentration or effect. This can be negative/

Ymax

usually Cmax or Emax

XofYmax

usually Tmax or TEmax

AUCname

usually AUClast or AUEClast

iAUC

a data.frame to calculate interval AUCs

Outer

indicates how to do the out of x range point

Details

This is a general purpose AUC function. It calculates only Cmax(Emax), Tmax(TEmax) and AUCs(AUECs). This can be used for effect(pharmacodynamic) data which has negative values. For concentration data, use IntAUC.

Value

Column names can vary according to the options.

Emax

maximum y value

TEmax

x value at the maximum y value

AUEClast

Area under the y versus x curve

iAUCs

Columns from iAUC input

Author(s)

Kyun-Seop Bae <k@acr.kr>

Examples

# For one subject
x = Theoph[Theoph$Subject=="1", "Time"]
y = Theoph[Theoph$Subject=="1", "conc"]
gAUC(x, y)

iAUC = data.frame(Name=c("AUC[0-12h]","AUC[0-24h]"), Start=c(0,0), End=c(12,24))
gAUC(x, y, iAUC=iAUC)

NonCompart documentation built on Nov. 15, 2023, 9:06 a.m.