rocc-class: Class rocc, ROC curve representation

Description Creating Objects Slots Methods Examples

Description

object representing ROC curve, typically created using rocdemo.sca

Creating Objects

new('rocc',
sens = ...., # Object of class numeric
spec = ...., # Object of class numeric
rule = ...., # Object of class function
cuts = ...., # Object of class numeric
markerLabel = ...., # Object of class character
caseLabel = ...., # Object of class character
)

Slots

sens:

Object of class "numeric" sensitivity values

spec:

Object of class "numeric" specificity values

rule:

Object of class "function" rule to classify objects

cuts:

Object of class "numeric" thresholds defining curve

markerLabel:

Object of class "character" name of measured marker

caseLabel:

Object of class "character" name of condition

Methods

plot

(rocc, missing): a plotting function with some additional parameters

Examples

1
2
3
4
set.seed(123)
R1 <- rocdemo.sca( rbinom(40,1,.3), rnorm(40), dxrule.sca,
   caseLabel="new case", markerLabel="demo Marker" )
plot( R1, show.thresh=TRUE )

Example output

NA in cutpts forces recomputation using smallest gap

ROC documentation built on Nov. 8, 2020, 5:23 p.m.