Learn R Programming

brainGraph (version 2.7.3)

auc_diff: Difference in the area-under-the-curve of two vectors

Description

This function takes two vectors, calculates the area-under-the-curve (AUC), and calculates the difference between the two.

Usage

auc_diff(x, y)

Arguments

x

Numeric vector of the x-values

y

A numeric matrix

Value

A numeric value of the difference between two groups, or a numeric vector of the AUC across vertices

Details

If 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.