simple_auc: Primitive non-parametric function for calculating AUC or...

Description Usage Arguments Details Value Examples

View source: R/simple_auc.R

Description

Primitive non-parametric function for calculating AUC or C-statistic for two comparable samples with ordinal data.

Usage

1
simple_auc(norm, abnorm)

Arguments

norm

Ordinal data of the norm group (controls).

abnorm

Ordinal data of the abnorm group (patients).

Details

This function does not check anything. Argument norm and abnorm must have the correct ordinal data. When mean(norm) > mean(abnorm) it is assumed that lower sores indicate deviation from the norm, and otherwise that higher scores indicate deviation of the norm. This function can handle very large files.

Value

The statistic AUC (Area under the Receiver Operating Characteristics Curve), also known as the C-statistic or Concordance statistic.

Examples

1
2
3
norm = round(rnorm(100, 3, 1))
abnorm= round(rnorm(80, 5, 2))
simple_auc(norm, abnorm)

UncertainInterval documentation built on March 3, 2021, 1:10 a.m.