estimate_block.Rd
The underlying network is assumed to be drawn from a Stochastic Bloc Model. This function uses a variational EM algorithm implemented in the package blockmodels to estimate such a model.
estimate_block(adj_matrix, partition = NULL, n_blocks = NULL, n_cores = 1)
adj_matrix | a symmetric weighted adjacency matrix |
---|---|
partition | a factor indicating a known partition of the variables to be respected during the clustering. If NULL (the default), to predfined partition is consider. |
n_blocks | integer, the number of blocks. Default is NULL, in which case the best model in terms of ICL is returned. |
n_cores | integer, the number of cores used for initializing the SBM exploration |