confusion: Error rate and confusion matrix

Description Usage Arguments Value Author(s) Examples

Description

The total error and the (g x g) confusion matrix for g-class classification problems

Usage

1
confusion(trueclass, predclass, labs)

Arguments

trueclass

The true classes

predclass

The predicted classes

labs

A vector of labels for the classes

Value

total.error

The total classification error

conf.matrix

The (g x g) confusion matrix

Author(s)

Solve Sæbø

Examples

1
2
data(BCdata)
confusion(factor(BCdata$Y), sample(c(0, 1), 130, replace = TRUE), c("0", "1"))

therimalaya/lplsReg documentation built on May 14, 2019, 8:36 a.m.