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

Description Usage Arguments Details Value

View source: R/utils.R

Description

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

Usage

1
auc_diff(x, y)

Arguments

x

Numeric vector of the x-values

y

A numeric matrix

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.

Value

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


brainGraph documentation built on May 29, 2018, 9:03 a.m.