Usage
Conf(x, ...)
## S3 method for class 'table':
Conf(x, pos = NULL, ...)
## S3 method for class 'matrix':
Conf(x, pos = NULL, ...)
## S3 method for class 'default':
Conf(x, ref, pos = NULL, na.rm = TRUE, ...)
## S3 method for class 'rpart':
Conf(x, ...)
## S3 method for class 'multinom':
Conf(x, ...)
## S3 method for class 'glm':
Conf(x, cutoff = 0.5, ...)
## S3 method for class 'randomForest':
Conf(x, ...)
## S3 method for class 'svm':
Conf(x, ...)
## S3 method for class 'regr':
Conf(x, ...)
## S3 method for class 'Conf':
plot(x, main="Confusion Matrix", ...)
## S3 method for class 'Conf':
print(x, digits = max(3, getOption("digits") - 3), ...)
Sens(x, ...)
Spec(x, ...)
Arguments
x
a vector, normally a factor, of predicted classes (for the default method) or an object of class table
. ref
a vector, normally a factor, of classes to be used as the reference.
pos
a character string that defines the factor level corresponding to the "positive" results. Will be ignored, if for a $n \times n$ table n > 2.
cutoff
the cutoff point for separating the classes. This is only used if x is a glm-model and ignored else.
main
overall title for the plot.
digits
controls the number of digits to print.
na.rm
a logical value indicating whether or not missing values should be removed. Defaults to FALSE.
...
further arguments to be passed to or from methods.