Learn R Programming

ergm.multi (version 0.2.1)

Networks: 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(...)

Value

A network object with multinetwork metadata.

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.

See Also

Help on model specification for specific terms

vignette("Goeyvaerts_reproduction") for a demonstration

Examples

Run this code

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

Run the code above in your browser using DataLab