gen.network.LE: Relocating Links algorithm (RL algorithm)

Description Usage Arguments Value Author(s) Examples

View source: R/gen.network.FE.R

Description

Generate network with a selected blockmodel and the level or errors.

Usage

1
2
3
4
5
6
7
gen.network.LE(
  BM = BM,
  LE = 0.4,
  n = 24,
  size = rep(1/nrow(BM), nrow(BM)),
  symmetric = FALSE
)

Arguments

BM

An image matrix of a blockmodel.

LE

Desired level of errors.

n

Network size.

size

A vector with the values specifying the clusters' sizes (the elements must sum to 1).

symmetric

Wheter a symmetric network should be generated.

k

Number of iterations.

Value

A network with selected blockmodel type and level of errors.

Author(s)

Marjan Cugmas

Examples

1
2
3
# generate initial and ideal network
cohesiveBM <- rbind(c("com", "nul"), c("nul", "com"))
network <- gen.network.LE(BM = cohesiveBM, LE = 0.5, n = 12, size = rep(0.5, 2))

nem documentation built on April 23, 2021, 3 p.m.

Related to gen.network.LE in nem...