defineSBM | R Documentation |
Define a network
defineSBM(
netMat,
model = "bernoulli",
type = ifelse(ncol(netMat) == nrow(netMat), "simple", "bipartite"),
directed = !isSymmetric(netMat),
dimLabels = c(row = "row", col = "col"),
covariates = list()
)
netMat |
a matrix describing the network: either an adjacency (square) or incidence matrix with possibly weighted entries. |
model |
character describing the model for the relation between nodes ( |
type |
Type of the matrix, choice between 'simple' and 'bipartite' |
directed |
logical: is the network directed or not? Only relevant when |
dimLabels |
an optional vector of labels for each dimension (in row, in column). Default value = c('row' = row,'col'= col) |
covariates |
a list of matrices with same dimension as mat describing covariates at the edge level. No covariate per Default. |
an object SimpleSBM or BipartiteSBM with the informations required to define a future multipartite network
A <- matrix(rbinom(100,1,.2), 10, 10)
myNet <- defineSBM(A, "poisson", "simple", TRUE, "Actor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.