summary.formula {ergm} | R Documentation |
Calculation of network or graph statistics or other attributes specified on a formula
Description
Most generally, this function computes those summaries of the
object on the LHS of the formula that are specified by its RHS. In
particular, if given a network as its LHS and
ergmTerm
on its RHS, it computes the sufficient
statistics associated with those terms.
Usage
## S3 method for class 'formula'
summary(object, ...)
Arguments
object |
A formula having as its LHS a
|
... |
further arguments passed to or used by methods. |
Details
In practice, summary.formula()
is a thin wrapper around the
summary_formula()
generic, which dispatches methods based on the
class of the LHS of the formula.
Value
A vector of statistics specified in RHS of the formula.
See Also
Examples
#
# Lets look at the Florentine marriage data
#
data(florentine)
#
# test the summary_formula function
#
summary(flomarriage ~ edges + kstar(2))
m <- as.matrix(flomarriage)
summary(m ~ edges) # twice as large as it should be
summary(m ~ edges, directed=FALSE) # Now it's correct
[Package ergm version 4.6.0 Index]