Define a network
Arguments
- 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 (
'bernoulli','poisson','gaussian', ...). Default is'bernoulli'.- type
Type of the matrix, choice between 'simple' and 'bipartite'
- directed
logical: is the network directed or not? Only relevant when
typeis'Simple'. Default isTRUEifnetMatis symmetric,FALSEotherwise- 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.