ergm.getnetwork: Acquire and verify the network from the LHS of an 'ergm'...

ergm.getnetworkR Documentation

Acquire and verify the network from the LHS of an ergm formula and verify that it is a valid network.

Description

The function function ensures that the network in a given formula is valid; if so, the network is returned; if not, execution is halted with warnings.

Usage

ergm.getnetwork(formula, loopswarning = getOption("ergm.warn_loops"))

Arguments

formula

a two-sided formula whose LHS is a network, an object that can be coerced to a network, or an expression that evaluates to one.

loopswarning

whether warnings about loops should be printed (TRUE or FALSE); defaults to value of option ergm.warn_loops or TRUE.

Value

A network object constructed by evaluating the LHS of the model formula in the formula's environment.


statnet/ergm documentation built on June 9, 2025, 1:51 a.m.