Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary_formula.networkDynamic

Calculation of networkDynamic statistics.


Description

A method for summary_formula to calculate the specified statistics for an observed networkDynamic at the specified time point(s). See ergm-terms for more information on the statistics that may be specified.

Usage

## S3 method for class 'networkDynamic'
summary_formula(object, at, ..., basis = NULL)

Arguments

object

An formula object with a networkDynamic as its LHS. (See summary_formula for more details.)

at

A vector of time points at which to calculate the statistics.

...

Further arguments passed to or used by methods.

basis

An optional networkDynamic object relative to which the statistics should be calculated.

Value

A matrix with length(at) rows, one for each time point in at, and columns for each term of the formula, containing the corresponding statistics measured on the network.

See Also

Examples

# create a toy dynamic network
my.nD <- network.initialize(100,directed=FALSE)
activate.vertices(my.nD, onset=0, terminus = 10)
add.edges.active(my.nD,tail=1:2,head=2:3,onset=5,terminus=8)

# use a summary formula to display number of isolates and edges
# at discrete time points
summary(my.nD~isolates+edges, at=1:10)

tergm

Fit, Simulate and Diagnose Models for Network Evolution Based on Exponential-Family Random Graph Models

v3.7.0
GPL-3 + file LICENSE
Authors
Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Mark S. Handcock [aut, ths], David R. Hunter [ctb], Steven M. Goodreau [ctb, ths], Martina Morris [ctb, ths], Nicole Bohme Carnegie [ctb], Carter T. Butts [ctb], Ayn Leslie-Cook [ctb], Skye Bender-deMoll [ctb], Li Wang [ctb], Kirk Li [ctb], Chad Klumb [ctb]
Initial release
2020-10-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.