MultiplexSBM_fit | R Documentation |
R6 Class definition of a Multiplex SBM fit
R6 Class definition of a Multiplex SBM fit
This class is designed to give a representation and adjust a Multiplex SBM fitted with GREMLIN.
The list of parameters estimOptions
essentially tunes the optimization process and the variational EM algorithm, with the following parameters
"nbCores" integer for number of cores used. Default is 2
"verbosity" integer for verbosity (0, 1). Default is 1
"nbBlocksRange" List of length the number of functional groups, each element supplying the minimal and maximal number of blocks to be explored. The names of the list must be the names of the functional groups. Default value is from 1 to 10)
"initBM" Boolean. True if using simple and bipartite SBM as initialisations. Default value = TRUE
"maxiterVEM" Number of max. number of iterations in the VEM. Default value = 100
"maxiterVE" Number of max. number of iterations in the VE. Default value = 100
sbm::SBM
-> sbm::MultipartiteSBM
-> sbm::MultipartiteSBM_fit
-> MultiplexSBM_fit
nbBlocks
vector of size 2: number of blocks (rows, columns)
dependentNetwork
: connection parameters in each network
storedModels
data.frame of all models fitted (and stored) during the optimization
namesLayers
: names of the various Networks
new()
constructor for Multiplex SBM
MultiplexSBM_fit$new(netList, dependentNet = FALSE)
netList
list of SBM object with
dependentNet
boolean indicating whether dependence is assumed between networks beyond the common dependence on the latent variables
optimize()
estimation of multipartiteSBM via GREMLINS
MultiplexSBM_fit$optimize(estimOptions)
estimOptions
options for MultipartiteBM
plot()
plot Multiplex Network
MultiplexSBM_fit$plot( type = c("data", "expected"), ordered = TRUE, plotOptions = list() )
type
character for the type of plot: either 'data' (true connection), 'expected' (fitted connection). Default to 'data'.
ordered
TRUE is the matrices are plotted after reorganization with the blocks. Default value = TRUE
plotOptions
list of plot options for the matrix view
show()
show method
MultiplexSBM_fit$show(type = "Fit of a Multiplex Stochastic Block Model")
type
character used to specify the type of SBM
predict()
prediction under the currently estimated model
MultiplexSBM_fit$predict()
a list of matrices matrix of expected values for each dyad
clone()
The objects of this class are cloneable with this method.
MultiplexSBM_fit$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.