compute_misrate: calculate the misclassification rates

View source: R/simulate.R

compute_misrateR Documentation

calculate the misclassification rates

Description

the first is the truth, the second is the estimated ones

Usage

compute_misrate(a, b)

Arguments

a

truth class labels

b

estimated class labels; a and b are of the same length

Value

the overall and the class-specific misclassification errors

Examples


compute_misrate(c(1,1,1,2,2,2,3,3,3),c(1,1,1,1,2,2,2,2,2))

zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.