simple_roc3: Primitive non-parametric function for calculating false and...

Description Usage Arguments Details Value Examples

View source: R/simple_roc3.R

Description

Primitive non-parametric function for calculating false and true positive rate for two comparable samples with ordinal data.

Usage

1
simple_roc3(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. The thresholds only concern available test scores and are always ordered from lowest to highest.

Value

List of

Examples

1
2
3
4
5
6
norm = round(rnorm(100, 3, 1))
abnorm= round(rnorm(80, 5, 2))
(res=simple_roc3(norm, abnorm))
# Plot ROC curve
plot(x=res$fpr, y=res$tpr, type='l')
abline(a=c(0,0), b=c(1,1))

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