powered by
dv
Calculate the area under the curve (AUC) for each subject over the time interval for dependent variables (dv) using the trapezoidal rule.
get_auc(data, time = "TIME", id = "ID", dv = "DV")
A data frame containing one AUC value for every subject as defined by id.
id
Based on the AUC function originally written by Leonid Gibiansky in package MIfuns 5.1, from Metrum Institute.
AUC
A data frame.
A string containing the name of the chronologically ordered time variable in data.
data
A string containing the name of the ID column (defining subject level data) in data.
A string containing the name of the dependent variable column in data.
Leonid Gibiansky, lgibiansky@quantpharm.com
https://code.google.com/archive/p/mifuns/
if (FALSE) { AUCs <- get_auc(myAUCdata) }
Run the code above in your browser using DataLab