This function takes two vectors, calculates the area-under-the-curve (AUC), and calculates the difference between the two.
Numeric vector of the x-values
A numeric matrix
y has 2 columns, then each column should be the values for each
subject group. If
y has multiple columns (e.g., equal to the number of
vertices of a graph), it will calculate the AUC for each column.
A numeric value of the difference between two groups, or a numeric vector of the AUC across vertices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.