Sum-ergmTerm | R Documentation |
This operator sums up the RHS statistics of the input formulas elementwise.
# binary: Sum(formulas, label)
# valued: Sum(formulas, label)
formulas |
a list (constructed using If a formula in the list has an LHS, it is interpreted as follows:
|
label |
used to specify the names of the elements of the resulting term sum vector. If |
Note that each formula must either produce the same number of statistics or be mapped through a matrix to produce the same number of statistics.
A single formula is also permitted. This can be useful if one wishes to, say, scale or sum up the statistics returned by a formula.
Offsets are ignored unless there is only one formula and the transformation only scales the statistics (i.e., the effective transformation matrix is diagonal).
Curved models are supported, subject to some limitations. In particular, the first model's etamap will be used, overwriting the others. If label
is not of length 1, it should have an attr
-style attribute "curved"
specifying the names for the curved parameters.
ergmTerm
for index of model terms currently visible to the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.