misclassificationrate: Misclassification Rate for Class Prediction

Description Usage Arguments Value Author(s) See Also Examples

Description

The misclassification rate is appropriate for 0-1 loss function for class prediction.

Usage

1

Arguments

y

vector of test cases

yp

corresonding vector of predictions

Value

the misclassification rate

Author(s)

A. I. McLeod

See Also

logloss

Examples

1
2
3
y <- c(3,1,1,3,3)
yh <- c(1,1,1,1,1)
misclassificationrate(y, yh)

gencve documentation built on May 29, 2017, 7:12 p.m.