Learn R Programming

ergm.sign (version 0.1.2)

network.sign: Create Signed Network Object

Description

Turn adjacency matrices or edgelists into static or dynamic signed networks.

Usage

network.sign(
  mat = NULL,
  pos.mat = NULL,
  neg.mat = NULL,
  directed = FALSE,
  loops = FALSE,
  matrix.type = c("adjacency", "edgelist"),
  vertex.names = NULL,
  vertex.attr = NULL,
  dual.sign = FALSE,
  timepoints = NULL,
  tie.breaker = c("zero", "positive", "negative", "first", "last"),
  ...
)

Value

A signed network of class `static.sign` or `dynamic.sign`.

Arguments

mat

(List of) signed adjacency matrices or edgelists. For dynamic networks, provide a list. Adjacency matrices must contain only -1, 0, or 1. Edgelists must have three columns: "From", "To", and "Sign".

pos.mat

Optional. Positive adjacency matrix or list of matrices.

neg.mat

Optional. Negative adjacency matrix or list of matrices. If provided, these are treated as two separate layers of the same network.

directed

Logical; should edges be interpreted as directed? Defaults to FALSE.

loops

Logical; should loops be allowed? Defaults to FALSE.

matrix.type

Either "adjacency" or "edgelist".

vertex.names

Optional. A vector or list of vertex names.

vertex.attr

Optional. Additional vertex attributes.

dual.sign

Logical. Allow positive and negative edges simultaneously between the same pair.

timepoints

Optional. Pooling definition for dynamic networks.

tie.breaker

How to resolve ties when pooling signed matrices.

...

Additional arguments passed to `network::network`.