get_auc | R Documentation |
dv
) using the trapezoidal rule.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")
data |
A data frame. |
time |
A string containing the name of the chronologically ordered time variable in |
id |
A string containing the name of the ID column (defining subject level data) in |
dv |
A string containing the name of the dependent variable column in |
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.
Leonid Gibiansky, lgibiansky@quantpharm.com
https://code.google.com/archive/p/mifuns/
## Not run:
AUCs <- get_auc(myAUCdata)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.