ROC: Generate matrix for ROC plot.

View source: R/TestOR.R

ROCR Documentation

Generate matrix for ROC plot.

Description

Generate matrix for ROC plot.

Usage

ROC(or_test, fit, truth)

Arguments

or_test

output of ORTest

fit

output of MIMOSA2

truth

vector of ground truth of length number of observations where response = "TRUE".

Value

matrix with columns "FPR" "TPR" and "Method"

See Also

MIMOSA2

Examples

s = simulate_MIMOSA2()
R = MIMOSA2(Ntot=s$Ntot, ns1 = s$ns1, nu1 = s$nu1, nu0 = s$nu0, ns0 = s$ns0)
or_result = ORTest(Ntot = s$Ntot, ns1 = s$ns1, nu1 = s$nu1, nu0 = s$nu0, ns0 = s$ns0)
ROC(or_test = or_result, fit=R, truth = s$truth%in%c("R1","R2","R3","R4"))

RGLab/MIMOSA2 documentation built on Oct. 10, 2022, 8:35 p.m.