nemSym: Generating symmetric networks according to the selected local...

View source: R/nemSym.R

nemSymR Documentation

Generating symmetric networks according to the selected local network mechanisms

Description

It generates random network considering the selected local network mechanisms.

Usage

nemSym(X, formula, theta, k = 5000, q)

Arguments

X

Initial network; of class matrix.

formula

The list of local netork mechanisms to be considered.

theta

A vector with the mechanisms' weights/strengths.

k

The number of iterations.

q

The probability of establishing a link (i.e. expected/desired density).

Value

The list with the following elements:

  • initialNetwork - Initial network; of class matrix.

  • finalNetwork - Final (generated) network; of class matrix.

  • formula - The list of functions that define mechanisms used.

  • theta - A vector with the mechanisms' weights/strengths used.

  • k - The number of iterations.

  • q - The probability of establishing a link.

Author(s)

Marjan Cugmas and Aleš Žiberna

References

Cugmas, M., DeLay, D., Žiberna, A., & Ferligoj, A. (2020). Symmetric core-cohesive blockmodel in preschool children’s interaction networks. PloS one, 15(1), e0226801.

Examples

formula <- list(popularity, assortativity)
X <- matrix(sample(c(0,1), size = 9**2, replace = TRUE), nrow = 9)
diag(X) <- 0
nemSym(X = X, formula = formula, theta = c(1, 1), k = 100, q = 0.25)

nemBM documentation built on Dec. 16, 2022, 5:06 p.m.

Related to nemSym in nemBM...