powered by
Calculates several classification statistics from binary prediction and criterion (e.g.; truth) vectors
classtable(prediction.v, criterion.v, sens.w = 0.5)
A binary vector of predictions
A binary vector of criterion (true) values
numeric. Weight given to sensitivity, must range from 0 to 1.
# classification statistics for 5 cases classtable(prediction.v = c(0, 0, 0, 1, 1), criterion.v = c(0, 0, 1, 0, 1))
Run the code above in your browser using DataLab