rocdemo.sca {ROC} | R Documentation |
rocdemo.sca – demonstrate 'rocc' class construction using a scalar marker and simple functional rule
rocdemo.sca(truth, data, rule, seqlen=min(length(truth),20), cutpts=seq(min(data), max(data), length = seqlen), markerLabel="unnamed marker", caseLabel="unnamed diagnosis")
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 |
dxrule.sca is function (x, thresh) ifelse(x > thresh, 1, 0)
an object of S4 class rocc
Vince Carey (stvjc@channing.harvard.edu)
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)