General Area Under the Curve
gAUC.RdGeneral AUC function for Emax, TEmax and AUCs
Usage
gAUC(x, y, Ymax = "Emax", XofYmax = "TEmax", AUCname = "AUEClast", iAUC = "",
Outer = "NEAREST")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
Kyun-Seop Bae <[email protected]>
Examples
# For one subject
x = Theoph[Theoph$Subject=="1", "Time"]
y = Theoph[Theoph$Subject=="1", "conc"]
gAUC(x, y)
#> $Emax
#> [1] 10.5
#>
#> $TEmax
#> [1] 1.12
#>
#> $Tfrst
#> [1] 0
#>
#> $Tlast
#> [1] 24.37
#>
#> $AUEClast
#> [1] 148.923
#>
iAUC = data.frame(Name=c("AUC[0-12h]","AUC[0-24h]"), Start=c(0,0), End=c(12,24))
gAUC(x, y, iAUC=iAUC)
#> $Emax
#> [1] 10.5
#>
#> $TEmax
#> [1] 1.12
#>
#> $Tfrst
#> [1] 0
#>
#> $Tlast
#> [1] 24.37
#>
#> $AUEClast
#> [1] 148.923
#>
#> $`AUC[0-12h]`
#> [1] 91.73552
#>
#> $`AUC[0-24h]`
#> [1] 147.6946
#>