Learn R Programming

ROC (version 1.48.0)

rocc-class: Class rocc, ROC curve representation

Description

object representing ROC curve, typically created using rocdemo.sca

Arguments

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

Run this code
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 )

Run the code above in your browser using DataLab