rocdemo.sca {ROC}R Documentation

function to build objects of class 'rocc'

Description

rocdemo.sca – demonstrate 'rocc' class construction using a scalar marker and simple functional rule

Usage

rocdemo.sca(truth, data, rule, 
       seqlen=min(length(truth),20), cutpts=seq(min(data), max(data), length = seqlen), 
       markerLabel="unnamed marker", caseLabel="unnamed diagnosis")

Arguments

truth true classification of objects
data quantitative markers used to classify
rule rule: a function with arguments
seqlen number of thresholds
cutpts values of thresholds
markerLabel textual label describing marker
caseLabel textual label describing classification

Details

dxrule.sca is function (x, thresh) ifelse(x > thresh, 1, 0)

Value

an object of S4 class rocc

Note

Author(s)

Vince Carey (stvjc@channing.harvard.edu)

References

See Also

Examples

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

[Package ROC version 1.0.11 Index]