misClustRate: Mis-Classification Rate (MCR)

View source: R/utility.R

misClustRateR Documentation

Mis-Classification Rate (MCR)

Description

Compute the empirical MCR, assuming that #cluster = #block, This calculation allows a permutation on clusters.

Usage

misClustRate(cluster, truth)

Arguments

cluster

vector of integer or factor, estimated cluster membership.

truth

a vector of the same length as clusters, the true cluster labels.

Value

numeric, the MCR.

Examples

truth = rep(1:3, each = 30)
cluster = rep(3:1, times = c(25, 32, 33))
misClustRate(cluster, truth)

epca documentation built on July 26, 2023, 5:47 p.m.