Estimate a colSBM on a collection of networks
estimate_colSBM.Rd
Estimate a colSBM on a collection of networks
Arguments
- netlist
A list of matrices.
- colsbm_model
Which colSBM to use, one of "iid", "pi", "delta", "deltapi".
- net_id
A vector of string, the name of the networks.
- directed
A boolean, are the networks directed or not.
- distribution
A string, the emission distribution, either "bernoulli" (the default) or "poisson"
- fit_sbm
A list of fitted model using the
sbm
package. Use to speed up the initialization.- nb_run
An integer, the number of run the algorithm do.
- global_opts
Global options for the outer algorithm and the output
- fit_opts
Fit options for the VEM algorithm
- fit_init
Do not use! Optional fit init from where initializing the algorithm.
See also
clusterize_networks()
, bmpop
,
fitSimpleSBMPop
, browseVignettes("colSBM")
Examples
# Trivial example with Gnp networks:
Net <- lapply(
list(.7, .7, .2, .2),
function(p) {
A <- matrix(0, 15, 15)
A[lower.tri(A)][sample(15 * 14 / 2, size = round(p * 15 * 14 / 2))] <- 1
A <- A + t(A)
}
)
if (FALSE) { # \dontrun{
cl <- estimate_colSBM(Net,
colsbm_model = "delta",
directed = FALSE,
distribution = "bernoulli",
nb_run = 1
)
} # }