Learn R Programming

FFTrees (version 1.1.8)

classtable: Calculates several classification statistics from binary prediction and criterion (e.g.; truth) vectors

Description

Calculates several classification statistics from binary prediction and criterion (e.g.; truth) vectors

Usage

classtable(prediction.v, criterion.v)

Arguments

prediction.v
A binary vector of predictions
criterion.v
A binary vector of criterion (true) values

Examples

Run this code


 # classification statistics for 5 cases
classtable(prediction.v = c(0, 0, 0, 1, 1),
           criterion.v = c(0, 0, 1, 0, 1))

# Same as above, but now is perfect
classtable(prediction.v = c(0, 0, 1, 0, 1),
           criterion.v = c(0, 0, 1, 0, 1))



Run the code above in your browser using DataLab