ROC: Generate matrix for ROC plot.

Description Usage Arguments Value See Also Examples

View source: R/TestOR.R

Description

Generate matrix for ROC plot.

Usage

1
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

1
2
3
4
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 May 9, 2017, 11:01 p.m.