| summary_formula {ergm} | R Documentation |
The generic summary_formula() (note the underscore) expects a
formula argument and will attempt to identify the class of the LHS
of the formula and dispatch to the appropriate summary_formula
method.
summary_formula(object, ..., basis = NULL) ## S3 method for class 'ergm' summary_formula(object, ..., basis = NULL) ## S3 method for class 'network.list' summary_formula(object, response = NULL, ..., basis = eval_lhs.formula(object)) ## S3 method for class 'network' summary_formula(object, response = NULL, ..., basis = ergm.getnetwork(object)) ## S3 method for class 'ergm_state' summary_formula(object, ..., basis = NULL) ## S3 method for class 'matrix' summary_formula(object, response = NULL, ..., basis = ergm.getnetwork(object)) ## Default S3 method: summary_formula(object, response = NULL, ..., basis = ergm.getnetwork(object))
object |
A two-sided formula. |
... |
further arguments passed to or used by methods. |
basis |
Optional object of the same class as the LHS of the formula, substituted in place of the LHS. |
response |
Either a character string, a formula, or
|
A vector of statistics measured on the network.
ergm: an ergm fit method, extracting its model from the fit.
network.list: a method for a network.list on the LHS of the formula.
network: a method for a network on the LHS of the formula.
ergm_state: a method for the semi-internal ergm_state on the LHS of the formula.
matrix: a method for a matrix on the LHS of the formula.
default: a fallback method.
# # 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