MI_simple {bikm1}R Documentation

MI_simple function for agreement between two partitions

Description

Produce a measure of agreement between two partitions.(between 0 and 1). A value of 1 corresponds to a perfect match.

Usage

MI_simple(v,vprime)

Arguments

v

numeric vector specifying the class of observations.

vprime

numeric vector specifying another partitions of observations.

Value

the value of the index.

References

Robert, Vasseur and Brault. Comparing high-dimensional partitions with the Co-clustering Adjusted Rand Index. Journal of Classification (2021).

Examples

require(bikm1)
J=200
K=120
h=3
l=2
theta=list()
theta$rho_h=1/h *matrix(1,h,1)
theta$tau_l=1/l *matrix(1,l,1)
theta$gamma_hl=matrix(c(1, 6,4, 1, 7, 1),ncol=2)
data=PoissonBlocRnd(J,K,theta)
res=BIKM1_LBM_Poisson(data$x,4,4,4,init_choice='random')
mi=MI_simple(res@model_max$v, data$xrow)
mi
mw=MI_simple(res@model_max$w, data$xcol)


[Package bikm1 version 1.1.0 Index]