list_Net: a list of networks (defined via the function defineNetwork) i.e. a multipartite network
v_distrib: an optional vector of characters of length the number of networks and specifying the distribution used in each network (possible values bernoulli,poisson,gaussian,laplace). If not provided, the model will be 'bernoulli' for all the interactions matrices.
namesFG: an optional vector of characters containing the names of functional groups (FG) (If Specified, must correspond to the names in list_Net).
v_Kmin: an optional vector of integers, specifying the minimal number of blocks per functional group (must be provided in the same order as in namesFG). v_Kmin may be a single value (same minimal number of blocks for all the FGs) or a vector with size equal to the number of FGs. Default value = 1.
v_Kmax: an optional vector of integers specifying the maximal number of blocks per functional group provided in the same order as in namesFG. v_Kmax may be a single value (same maximal number of blocks for all the FGs) or a vector with size equal to the number of FGs. Default value = 10.
v_Kinit: an optional vector of integers specifying initial numbers of blocks per FG provided in the same order as in namesFG. if v_Kinit is not specified, then v_Kinit = v_Kmin
initBM: an optional boolean. If initBM = TRUE an aditional initialisation is done using simple LBM or SBM on each network separatly. Default value = TRUE
keep: an optional boolean. If TRUE return the estimated parameters for intermediate visited models. Otherwise, only the better model (in ICL sense) is the ouput. Default value = FALSE.
verbose: an optional boolean. If TRUE, display the current step of the search algorithm
nbCores: an optional integer specifying the number or cores used for the estimation. Not parallelized on windows. If ncores = NULL, then half of the cores are used.
maxiterVE: an optional integer specifying the maximum number of iterations in the VE step of the VEM algorithm. If NULL then default value = 1000
maxiterVEM: an optional integer specifying the maximum number of iterations of the VEM algorithm. If NULL then default value Default value = 1000
Returns
a list of estimated parameters for the different models ordered by decreasing ICL. If keep = FALSE, the length is of length 1 (only the better model is returned).
fittedModel: contains the results of the inference. res$fittedModel[[1]] is a list with fields
- **`paramEstim`**: a MBMfit object.
- **`ICL`**: the penalized likelihood criterion ICL.
- **`vJ`**: the sequence of the varational bound of the likelihood through iterations of the VEM.
- **`convergence`**: TRUE if the VEM reached convergence.
list_Net: contains the data.
Details
The function multipartiteBM selects the better numbers of blocks in each FG (with a penalized likelihood criterion). The model selection is performed with a forward backward strategy and the likelihood of each model is maximized with a variational EM).