rocc-class {ROC}R Documentation

Class rocc, ROC curve representation

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

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 )

[Package ROC version 1.56.0 Index]