sortIntensities: Sort intensities

Description Usage Arguments References Examples

View source: R/output.R

Description

Sort intensities associated with hat.z "in the same way" as the original intensities associated with z by permutation of rows

Usage

1
sortIntensities(intensities, z, hat.z, directed)

Arguments

intensities

Intensities α

z

Matrice of size Q \times n

hat.z

Matrice of size Q \times n

directed

Boolean for directed (TRUE) or undirected (FALSE) case

References

HUBERT, L. & ARABIE, P. (1985). Comparing partitions. J. Classif. 2, 193<e2><80><93>218.

MATIAS, C., REBAFKA, T. & VILLERS, F. (2018). A semiparametric extension of the stochastic block model for longitudinal networks. Biometrika.

Examples

1
2
3
4
5
6
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)

intens <- matrix(c(1,1,1,2,2,2,3,3,3),9)

sortIntensities(intens,z,hat.z, TRUE)

ppsbm documentation built on May 1, 2019, 11:26 p.m.