gen.network.LE {nem}R Documentation

Relocating Links algorithm (RL algorithm)

Description

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

Usage

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

# 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))

[Package nem version 0.12.33 Index]