Simulate datasets from the multipartite block model (MBM).
Simulate datasets from the multipartite block model (MBM).
rMBM simulates a collection of networks involving common functional groups of entities. The networks may be directed, undirected or bipartite. The emission distribution of the edges may be Bernoulli, Poisson, Gaussian, Zero-Inflated Gaussian, or Laplace. See the vignette for more information about the model.
v_NQ: : number of individual in each Functional Group (FG)
E: : define the architecture of the Multipartite.
typeInter: : type of interaction in each network: undirected adjacency (adj), directed adjacency (diradj) or incidence (inc). (vector of size equal to nrow(E) )
v_distrib: : vector of the distributions: 'bernoulli', 'poisson', 'gaussian', 'ZIgaussian' (for Zero inflated gaussian) or 'laplace' ( vector of size equal to nrow(E) )
list_pi: : parameters of the blocks distribution
list_theta: : parameters of the interactions distribution. For Bernoulli a probability, for Poisson positive real number, for Gaussian a list specifying mean and var (plus p0 for ZIgaussian), for Laplace a list with location and scale
namesFG: : names of the FG. (default value = NULL, then the functional groups are labelled FG1, FG2, etc)
keepClassif: : equal to TRUE if you want to keep the simulated blocks/classification (default value = FALSE).
seed: : set the seed for the random simulation (default value = NULL)
Returns
A list of lists containing the networks (list_net) and if keepClassif = TRUE the classifications (classif) Each element of list_net corresponds to a network : each network is a list containing the matrix (mat) , the type of network(diradj, adj, inc), the functional group in row (rowFG) and the functional group in columns (colFG)