call.ErgmTerm: Locate and call an ERGM term initialization function.

View source: R/ergm_model.R

call.ErgmTermR Documentation

Locate and call an ERGM term initialization function.

Description

A helper function that searches attached and loaded packages for a term with a specifies name, calls it with the specified arguments, and returns the result.

Usage

call.ErgmTerm(term, env, nw, ..., term.options = list())

Arguments

term

A term from an ergm() formula: typically a name or a call.

env

Environment in which it is to be evaluated.

nw

A network object.

...

Additional term options.

term.options

A list of optional settings such as calculation tuning options to be passed to the InitErgmTerm functions.

Value

The list returned by the the InitErgmTerm or InitWtErgmTerm function, with package name autodetected if neede.


statnet/ergm documentation built on April 17, 2024, 12:21 p.m.