Last chance! 50% off unlimited learning
Sale ends in
ergm
.
See ergm-terms
for more information on the statistics that may
be specified.## S3 method for class 'default':
summary.statistics(object, response=NULL, \dots, basis=NULL)
## S3 method for class 'matrix':
summary.statistics(object, response=NULL, \dots, basis=NULL)
## S3 method for class 'network':
summary.statistics(object, response=NULL, \dots, basis=NULL)
## S3 method for class 'network.list':
summary.statistics(object, response=NULL, \dots, basis=NULL)
## S3 method for class 'formula':
summary.statistics(object, \dots, basis=NULL)
## S3 method for class 'ergm':
summary.statistics(object, \dots, basis=NULL)
NULL
for simple presence or
absence, modeled via binary ERGM terms. Passing
anything but NULL
uses valued ERGM terms.network
object relative to which
the global statistics should be calculated.object
is of class formula
, then
summary
may be used in lieu of summary.statistics
because summary.formula
calls the summary.statistics
function. The function actually cumulates the change statistics when removing edges
from the observed network one by one until the empty network results.
Since each model term has a prespecified value (zero by default) for the
corresponding statistic(s) on an empty network, these change statistics
give the absolute statistics on the original network. summary.formula
for networks understands the
lasttoggle
"API".
#
# Lets look at the Florentine marriage data
#
data(florentine)
#
# test the summary.statistics 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
Run the code above in your browser using DataLab