rpa_control_scenario {wdnet}R Documentation

Control edge scenarios. Defined for rpanet.

Description

Control edge scenarios. Defined for rpanet.

Usage

rpa_control_scenario(
  alpha = 1,
  beta = 0,
  gamma = 0,
  xi = 0,
  rho = 0,
  beta.loop = TRUE,
  source.first = TRUE
)

Arguments

alpha

Probability of adding an edge from a new node to an existing node.

beta

Probability of adding an edge between existing nodes.

gamma

Probability of adding an edge from an existing node to a new node.

xi

Probability of adding an edge between two new nodes.

rho

Probability of adding a new node with a self-loop.

beta.loop

Logical. Determines whether self-loops are allowed under the beta scenario. Default value is TRUE.

source.first

Logical. Defined for beta scenario edges of directed networks. If TRUE, the source node of a new edge is sampled from existing nodes before the target node is sampled; if FALSE, the target node is sampled from existing nodes before the source node is sampled. Default value is TRUE.

Value

A list of class rpacontrol with components alpha, beta, gamma, xi, rho, beta.loop and source.first with meanings as explained under 'Arguments'.

Examples

control <- rpa_control_scenario(alpha = 0.5, beta = 0.5, beta.loop = FALSE)


[Package wdnet version 1.2.3 Index]