R6 class for Simple SBM
Super class
SBM -> SimpleSBM
Active bindings
dimLabelsa single character giving the label of the nodes
blockPropvector 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
maskMask for the (potential) NAs in the adjacency matrix
nbBlocksnumber of blocks
nbDyadsnumber of dyads (potential edges in the network)
nbConnectParamnumber of parameter used for the connectivity
nodesCovariatesmatrix of covariates on nodes
nodesCovariatesParamthe matrix of nodes covariates parameters
nbNodesCovariatesnumber of covariates on nodes
membershipsvector of clustering
indMembershipsmatrix for clustering memberships
Methods
Inherited methods
SimpleSBM$new()
constructor for SBM
Arguments
modelcharacter describing the type of model
nbNodesnumber of nodes in the network
directedlogical, directed network or not.
blockPropparameters for block proportions (vector of list of vectors)
connectParamlist of parameters for connectivity with a matrix of means 'mean' and an optional scalar for the variance 'var'. The size of mu must match
blockProplengthdimLabelsoptional label for the node (default is "nodeName")
covarParamoptional vector of covariates effect
covarListoptional list of covariates data
nodesCovarListoptional list of one matrix with nodes covariates
nodesCovarParamoptional list of one matrix of parameters of effects of nodes covariates on clustering
SimpleSBM$rMemberships()
a method to sample new block memberships for the current SBM
SimpleSBM$rEdges()
a method to sample a network data (edges) for the current SBM
SimpleSBM$predict()
prediction under the currently parameters
SimpleSBM$plot()
basic matrix plot method for SimpleSBM object or mesoscopic plot
Arguments
typecharacter for the type of plot: either 'data' (true connection), 'expected' (fitted connection), 'graphon' (block connectivity on the unit square, blocks sized by the block proportions) or 'meso' (mesoscopic view). Default to 'data'.
orderedlogical: should the rows and columns be reordered according to the clustering? Default to
TRUE.plotOptionslist with the parameters for the plot. See help of the corresponding S3 method for details.