genNetworkLE {nemBM} | R Documentation |
Relocating Links algorithm (RL algorithm)
Description
Generate network with a selected blockmodel and level or errors. See details section.
Usage
genNetworkLE(BM = BM, LE = 0.4, size = NULL, symmetric = FALSE)
Arguments
BM |
An image matrix of a blockmodel; of class |
LE |
Desired level of errors. |
size |
A vector with the values specifying clusters' sizes. The number of elements of this vector must be the same as the number of clusters specified by an image matrix. |
symmetric |
Wheter a symmetric network should be generated. |
Details
The level of errors (LE) is used to simulate the extent of inconsistencies in blockmodels. It is defined on a scale between 0 and 1, where 0 corresponds to an ideal blockmodel, and 1 corresponds to a totally randomised network with the same density as in the ideal blockmodel.
Value
A binary network (of class matrix
) with selected blockmodel type and level of errors.
Author(s)
Marjan Cugmas
References
Cugmas, M., Žiberna, A., & Ferligoj, A. (2021). The Relative Fit measure for evaluating a blockmodel. Statistical Methods & Applications, 30(5), 1315-1335.
Examples
cohesiveBM <- rbind(c("com", "nul"), c("nul", "com"))
network <- genNetworkLE(BM = cohesiveBM, LE = 0.5, size = c(5, 3))