This operator evaluates formula
without modification, but modifies its coefficient and/or parameter names based on label
and pos
.
# binary: Label(formula, label, pos)# valued: Label(formula, label, pos)
a one-sided ergm()
-style formula with the terms to be evaluated
a character vector specifying the label for the terms, a list
of two character vectors (see Details), or a function through which term names are mapped (or a as_mapper
-style formula).
controls how label
modifies the term names: one of "prepend"
, "replace"
, "append"
, or "("
, with the latter wrapping the term names in parentheses like a function call with name specified by label
.
If pos == "replace"
:
Elements for which is.na(label) == TRUE
are preserved.
If the model is curved, label=
can be a either function/mapper
or a list
with two elements, the first element giving the
curved (model) parameter names and second giving the canonical
parameter names. NULL
leaves the respective name unchanged.
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "Label", "subsection")