ergm
network modelThese methods are generally not called directly by users, but may
be employed by other depending packages.
ergm_model
constructs it from a formula. Each term is
initialized via the InitErgmTerm
functions to create a
ergm_model
object.
ergm_model(formula, nw = NULL, response = NULL, silent = FALSE,
role = "static", ..., term.options = list())# S3 method for ergm_model
c(...)
as.ergm_model(x, ...)
# S3 method for ergm_model
as.ergm_model(x, ...)
# S3 method for formula
as.ergm_model(x, ...)
# S3 method for ergm_model
is.curved(object, ...)
# S3 method for ergm_model
is.durational(object, ...)
# S3 method for ergm_model
is.dyad.independent(object, ...)
# S3 method for ergm_model
nparam(object, canonical = FALSE, offset = NA,
byterm = FALSE, ...)
# S3 method for ergm_model
param_names(object, canonical = FALSE, ...)
An ergm()
formula of the form network ~ model.term(s)
or ~
model.term(s)
.
The network of interest; if passed, the LHS of formula
is ignored. This is the recommended usage.
Name of the edge attribute whose value is to be
modeled in the valued ERGM framework. Defaults to NULL
for
simple presence or absence, modeled via a binary ERGM.
logical, whether to print the warning messages from the initialization of each model term.
A hint about how the model will be used. Used primarily for dynamic network models.
additional parameters for model formulation
a list of optional settings such as calculation tuning options to be passed to the InitErgmTerm
functions.
object to be converted to an ergm_model
.
An ergm_model
object.
Whether the canonical (eta) parameters or the curved (theta) parameters are used.
If NA
(the default), all model terms are counted;
if TRUE
, only offset terms are counted; and if
FALSE
, offset terms are skipped.
Whether to return a vector of the numbers of coefficients for each term.
ergm_model
returns an ergm_model
object as a list
containing:
the formula inputted to
ergm_model
a vector of coefficient names
a logical vector of whether each term was "offset", i.e. fixed
a list of terms and 'term components' initialized by the
appropriate InitErgmTerm.X
function.
NULL always??
the theta -> eta mapping as a list returned from <ergm.etamap>
c
: A method for concatenating terms of two or more initialized models.
is.curved
: Tests whether the model is curved.
is.durational
: Test if the model has duration-dependent terms, which call for lasttoggle data structures.
is.dyad.independent
: Tests whether the model is dyad-independent.
nparam
: Number of parameters of the model.
param_names
: Parameter names of the model.