Learn R Programming

ergm.sign (version 0.1.2)

networks.sign: Combine Signed Networks into a Multi- or Dynamic-Network Object

Description

Creates a composite network object from multiple signed networks, suitable for ERGM modeling. Can represent either a multilayer or dynamic signed network structure.

Usage

networks.sign(..., dynamic = FALSE, dual.sign = FALSE)

Value

A combined network object of class "multi.sign" or

"dynamic.sign", with the appropriate ERGM constraint formula.

Arguments

...

One or more signed networks (objects of class "static.sign"), or a list of such networks.

dynamic

Logical. If TRUE, treat input as a dynamic network; otherwise as a multilayer network. Defaults to FALSE.

dual.sign

Logical. If TRUE, disables the layer fixing constraint. Defaults to FALSE.

Examples

Run this code
data("tribes")
multi_net <- networks.sign(tribes, tribes)
dyn_net <- networks.sign(list(tribes, tribes), dynamic = TRUE)

Run the code above in your browser using DataLab