# ARI: Adjusted Rand Index (ARI) In ppsbm: Clustering in Longitudinal Networks

## Description

Compute the Adjusted Rand Index (ARI) between the true latent variables and the estimated latent variables

## Usage

 1 ARI(z, hat.z) 

## Arguments

 z Matrix of size Q \times n with entries = 0 or 1 : 'true' latent variables hat.z Matrix of Q \times n with 0

## Examples

 1 2 3 4 z <- matrix(c(1,1,0,0,0,0, 0,0,1,1,0,0, 0,0,0,0,1,1), nrow = 3, byrow = TRUE) hat.z <- matrix(c(0,0,1,1,0,0, 1,1,0,0,0,0, 0,0,0,0,1,1), nrow = 3, byrow = TRUE) ARI(z, hat.z) 

ppsbm documentation built on March 19, 2018, 5:03 p.m.