Networks: A multinetwork network representation.

View source: R/InitErgmTerm.multinet.R

NetworksR Documentation

A multinetwork network representation.

Description

A function for specifying the LHS of a multi-network (a.k.a. multilevel) ERGM. Typically used in conjunction with the N() term operator.

Usage

Networks(...)

Arguments

...

network specification, in one of two formats:

  1. An (optionally named) list of networks with same directedness and bipartedness (but possibly different sizes).

  2. Several networks as (optionally named) arguments.

Value

A network object comprising the provided networks, with multinetwork metadata.

Due to certain optimizations, the resulting network object's network and vertex attributes should be treated as read-only: do not modify them. If you need to change existing attributes or add new ones, do so on the input networks and call Networks(...) again.

See Also

ergmTerm for specific terms.

vignette("Goeyvaerts_reproduction") for a demonstration.

Examples


data(samplk)

# Method 1: list of networks
monks <- Networks(list(samplk1, samplk2))
ergm(monks ~ N(~edges))

# Method 2: networks as arguments
monks <- Networks(samplk1, samplk2)
ergm(monks ~ N(~edges))


statnet/ergm.multi documentation built on Dec. 4, 2024, 11:24 a.m.