Learn R Programming

FFTrees (version 1.2.3)

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, sens.w = 0.5)

Arguments

prediction.v

A binary vector of predictions

criterion.v

A binary vector of criterion (true) values

sens.w

numeric. Weight given to sensitivity, must range from 0 to 1.

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))



Run the code above in your browser using DataLab