View source: R/InitErgmTerm.operator.R
wrap.ergm_model | R Documentation |
InitErgmTerm
or InitWtErgmTerm
.Given a ergm
model and (optionally) a function with which to wrap
parameter names, wrap the calls to its ergm.eta()
and
ergm.etagrad()
into map()
and gradient()
functions, similarly
with the params
element; wrap empty network statistics; wrap
indicator of dyadic independence; and wrap offset indicators.
wrap.ergm_model(m, nw, namewrap = identity)
m |
An |
nw |
A |
namewrap |
An optional function taking a character vector and
returning a character vector of the same length, called on the
model's canonical and curved parameter names to wrap them. Set to
|
namewrap
also controls how dyadic dependence flag is propagated
for auxiliaries. If NULL
, it is propagated; if not, the
auxiliaries are ignored and only terms's dyadic dependence is
propagated.
a list with elements map
, gradient
, params
,
emptynwstats
, dependence
, offsettheta
, and offsetmap
,
suitable for concatenating with an InitErgmTerm
or
InitWtErgmTerm
output list (possibly after modification).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.