Description Usage Arguments Details Value Author(s) References
Calculate the area under the curve (AUC) for each subject over the time interval for
dv
using the trapezoidal rule.
1 |
data |
data.frame containing the data to use for the AUC calculation |
time |
chronologically ordered time variable present in |
id |
variable in |
dv |
dependent variable used to calculate AUC present in |
The AUC
function performs the calculation based on the variables id
, time
, and dv
present in the R data object.
Warnings are issued if any of these contain NA
.
One area under the dv-time curve is returned for each subject.
Leonid Gibiansky
http://metrumrg.googlecode.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.