Learn R Programming

NonCompart (version 0.7.0)

gIntAUC: Calculate interval AUC of general form

Description

It calculates interval AUC of general form. This is useful for pharmacodynamic data.

Usage

gIntAUC(x, y, t1, t2, Outer = "NEAREST")

Value

return interval AUC value (scalar)

Arguments

x

vector values of independent variable, usually time

y

vector values of dependent variable, usually concentration

t1

start time for AUC

t2

end time for AUC

Outer

indicates how to do the out of x range point

Author

Kyun-Seop Bae <k@acr.kr>

Details

This calculates an interval (partial) AUC (from t1 to t2) with the given series of x and y. If t1 and/or t2 cannot be found within x vector, it interpolates. If t1 and/or t2 are out of x range, it uses the nearest value. For concentration data, use IntAUC.

See Also

gAUC, gInterpol, tblAUC

Examples

Run this code
gIntAUC(Theoph[Theoph$Subject==1, "Time"], Theoph[Theoph$Subject==1, "conc"], t1=0.5, t2=11)

Run the code above in your browser using DataLab