This operator evaluates a list of formulas whose corresponnding RHS statistics will be multiplied elementwise. They are required to be nonnegative.
# binary: Prod(formulas, label)# valued: Prod(formulas, label)
a list (constructed using list()
or c()
) of ergm()
-style formulas whose RHS gives the statistics to be evaluated, or a single formula.
If a formula in the list has an LHS, it is interpreted as follows:
a numeric scalar: Network statistics of this formula will be exponentiated by this.
a numeric vector: Corresponding network statistics of this formula will be exponentiated by this.
a numeric matrix: Vector of network statistics will be exponentiated by this using the same pattern as matrix multiplication.
a character string: One of several predefined multiplicative combinations. Currently supported presets are as follows:
"prod"
: Network statistics of this formula will be multiplied together; equivalent to matrix(1,1,p)
, where p
is the length of the network statistic vector.
"geomean"
: Network statistics of this formula will be geometrically averaged; equivalent to matrix(1/p,1,p)
, where p
is the length of the network statistic vector.
used to specify the names of the elements of the resulting term product vector. If label
is a character vector of length 1,
it will be recycled with indices appended. If a function is specified, formulas
parameter names are extracted and their list of character vectors is passed label
.
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 multiply together 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.
ergm:::.formatTermKeywords("ergmTerm", "Prod", "subsection")