get_auc: Calculate the area under the curve (AUC) for each subject...

get_aucR Documentation

Calculate the area under the curve (AUC) for each subject over the time interval for dependent variables (dv) using the trapezoidal rule.

Description

Calculate the area under the curve (AUC) for each subject over the time interval for dependent variables (dv) using the trapezoidal rule.

Usage

get_auc(data, time = "TIME", id = "ID", dv = "DV")

Arguments

data

A data frame.

time

A string containing the name of the chronologically ordered time variable in data.

id

A string containing the name of the ID column (defining subject level data) in data.

dv

A string containing the name of the dependent variable column in data.

Value

A data frame containing one AUC value for every subject as defined by id.

Based on the AUC function originally written by Leonid Gibiansky in package MIfuns 5.1, from Metrum Institute.

Author(s)

Leonid Gibiansky, lgibiansky@quantpharm.com

References

https://code.google.com/archive/p/mifuns/

Examples

## Not run: 
 AUCs <- get_auc(myAUCdata)

## End(Not run)


kestrel99/pmxTools documentation built on Feb. 25, 2023, 1:26 p.m.