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.
Returns
Column names can vary according to the options. - Emax: maximum y value
# For one subjectx = 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)