R6 virtual class for SBM representation (mother class of SimpleSBM, BipartiteSBM, MultipartiteSBM)
Source:R/R6Class-SBM.R
SBM.RdR6 virtual class for SBM representation (mother class of SimpleSBM, BipartiteSBM, MultipartiteSBM)
Active bindings
modelNamecharacter, the family of model for the distribution of the edges
directedmode of the network data (directed or not or not applicable)
dimLabelsvector or list of characters, the label of each dimension
nbNodesvector describing the number of the successive elements connecting the network
nbCovariatesinteger, the number of covariates
connectParamparameters associated to the connectivity of the SBM, e.g. matrix of inter/inter block probabilities when model is Bernoulli
covarParamvector of regression parameters associated with the covariates.
covarListlist of matrices of covariates
covarArraythe array of covariates
covarEffecteffect of covariates
nbNodesCovariatesthe dimension of the nodes covariates
nodesCovariatesthe list of nodes covariates
nodesCovariatesParamthe list of nodes covariates parameters
networkDatathe network data (adjacency or incidence matrix or list of such object)
expectationexpected values of connection under the current model
Methods
SBM$new()
constructor for SBM
Usage
SBM$new(
model = vector("character", 0),
directed = vector("logical", 0),
dimension = vector("numeric", 0),
dimLabels = vector("character", 0),
blockProp = vector("numeric", 0),
connectParam = vector("list", 0),
covarParam = numeric(length(covarList)),
covarList = list(),
nodesCovarList = list(),
nodesCovarParam = list()
)Arguments
modelcharacter describing the type of model
directedlogical describing if the network data is directed or not
dimensiondimension of the network data
dimLabelslabels of each dimension
blockPropparameters for block proportions (vector or list of vectors)
connectParamlist of parameters for connectivity
covarParamoptional vector of covariates effect
covarListoptional list of covariates data
nodesCovarListoptional list of covariates on nodes (rows and cols),
nodesCovarParamoptional list of vector of node covariates effects on the clustering
SBM$rNetwork()
a method to sample a network data for the current SBM (blocks and edges)