powered by
Compute the empirical MCR, assuming that #cluster = #block, This calculation allows a permutation on clusters.
misClustRate(cluster, truth)
numeric, the MCR.
numeric
vector of integer or factor, estimated cluster membership.
integer
factor
a vector of the same length as clusters, the true cluster labels.
clusters
truth = rep(1:3, each = 30) cluster = rep(3:1, times = c(25, 32, 33)) misClustRate(cluster, truth)
Run the code above in your browser using DataLab