B-ergmTerm {ergm} | R Documentation |
Wrap binary terms for use in valued models
Description
Wraps binary ergm
terms for use in valued models, with formula
specifying which terms
are to be wrapped and form
specifying how they are to be
used and how the binary network they are evaluated on is to be constructed.
Usage
# valued: B(formula, form)
Arguments
formula |
a one-sided |
form |
One of three values:
|
Details
For example, B(~nodecov("a"), form="sum")
is equivalent to
nodecov("a", form="sum")
and similarly with
form="nonzero"
.
When a valued implementation is available, it should be preferred, as it is likely to be faster.
See Also
ergmTerm
for index of model terms currently visible to the package.
Keywords
operator, valued