| MultipartiteSBM {sbm} | R Documentation |
R6 Class definition of a Multipartite SBM
Description
R6 Class definition of a Multipartite SBM
R6 Class definition of a Multipartite SBM
Super class
sbm::SBM -> MultipartiteSBM
Active bindings
dimLabelsvector of characters giving the label of each connected dimension
blockProplist of two vectors of block proportions (aka prior probabilities of each block)
connectParamparameters associated to the connectivity of the SBM, e.g. matrix of inter/inter block probabilities when model is Bernoulli
probMembershipsmatrix of estimated probabilities for block memberships for all nodes
nbBlocks: vector with the number of blocks in each FG
nbConnectParamnumber of parameter used for the connectivity
architectureorganization of the multipartite network
nbNetworksnumber of networks in the multipartite network
membershipslist of size 2: vector of memberships in all parts of the network
indMembershipsmatrix for clustering memberships
Methods
Public methods
Inherited methods
Method new()
constructor for Multipartite SBM
Usage
MultipartiteSBM$new( model = character(0), architecture = matrix(NA, 0, 2), directed = logical(0), nbNodes = numeric(0), dimLabels = character(0), blockProp = list(), connectParam = list() )
Arguments
modelcharacter describing the type of model
architecturea 2-column matrix describing interactions between the networks
directedvector of logical: are the network directed or not?
nbNodesnumber of nodes in each dimension/part of the network
dimLabelslabels of each par of the network
blockPropparameters for block proportions (vector of list of vectors)
connectParamparameters of connectivity (vector of list of vectors)
Method show()
print method
Usage
MultipartiteSBM$show(type = "Multipartite Stochastic Block Model")
Arguments
typecharacter to tune the displayed name
Method print()
print method
Usage
MultipartiteSBM$print()
Method plot()
plot Multipartite Network
Usage
MultipartiteSBM$plot(
type = c("data", "expected", "meso"),
ordered = TRUE,
plotOptions = list()
)Arguments
typecharacter for the type of plot: either 'data' (true connection), 'expected' (fitted connection) or 'meso' (mesoscopic view). Default to 'data'.
orderedTRUE is the matrices are plotted after reorganization with the blocks. Default value = TRUE
plotOptionslist of plot options for the mesoscopic view or matrix view
Method clone()
The objects of this class are cloneable with this method.
Usage
MultipartiteSBM$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.