ROCPlot: Plot ROCs using ggplot

Description Usage Arguments Details See Also Examples

View source: R/TestOR.R

Description

Plot ROCs using ggplot

Usage

1
ROCPlot(R, lambda = 1)

Arguments

R

matrix output of ROC()

lambda

numeric smoothing. Default 1

Details

uses the output of ROC

See Also

MIMOSA2

Examples

1
2
3
4
5
s = simulate_MIMOSA2()
R = MIMOSA2(Ntot=s$Ntot, ns1 = s$ns1, nu1 = s$nu1, nu0 = s$nu0, ns0 = s$ns0,maxit=10)
or_result = ORTest(Ntot = s$Ntot, ns1 = s$ns1, nu1 = s$nu1, nu0 = s$nu0, ns0 = s$ns0)
roc = ROC(or_test = or_result, fit=R, truth = s$truth%in%c("R1","R2","R3","R4"))
ROCPlot(roc)

RGLab/MIMOSA2 documentation built on May 9, 2017, 11:01 p.m.