Function to evaluate predictions

Description

Perform the evaluation of predictions.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'matrix'
performDaim(x, labels, prediction=NULL,
            thres=seq(0,1,by=0.01),
            cutoff=0.5, labpos="1", ...)
		
## S3 method for class 'data.frame'
performDaim(x, labels, prediction=NULL,
            thres=seq(0,1,by=0.01),
            cutoff=0.5, labpos="1", ...)

Arguments

x

a matrix or data frame containing the predictions.

labels

a vector containing the true class labels. It can be a factor or character vector.

prediction

a vector containing the prediction probability obtained by a model: see Daim.

thres

a numeric vector with the cutoff values.

cutoff

the cutoff value for error estimation. This can be a numeric value or a character string. If the cutoff set to:
"loob" - the optimal cut-point corresponding to loob estimation of the sensitivity and the specificity.
"0.632" - the optimal cut-point corresponding to 0.632 estimation of the sensitivity and the specificity.
"0.632+" - the optimal cut-point corresponding to 0.632+ estimation of the sensitivity and the specificity.

labpos

a character string of the variable labels that defines a "positive" event.

...

additional parameters.

See Also

Daim, plot.Daim

Examples

1
2
  data(Daim.data1)
  (perform <- performDaim(Daim.data1$prob.oob, Daim.data1$labels, Daim.data1$prob.app))