gIntAUC: Calculate interval AUC of general form

View source: R/gIntAUC.R

gIntAUCR Documentation

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")

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.

Value

return interval AUC value (scalar)

Author(s)

Kyun-Seop Bae <k@acr.kr>

See Also

gAUC, gInterpol, tblAUC

Examples

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

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