It calculates interval AUC of general form. This is useful for pharmacodynamic data.
gIntAUC(x, y, t1, t2, Outer ="NEAREST")
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
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.