Learn R Programming

xergm (version 1.5.3)

simulate.btergm: Simulate new networks from btergm objects

Description

Simulate new networks from btergm objects.

Usage

## S3 method for class 'btergm':
simulate(object, nsim = 1, seed = NULL, 
    index = NULL, formula = getformula(object), 
    coef = object@coef, verbose = TRUE, ...)

Arguments

object
A btergm object, resulting from a call of the btergm function.
nsim
The number of networks to be simulated. Note that for values greater than one, a network.list object is returned, which can be indexed just like a list object, for example mynetworks[[1]] for the first simulated netw
seed
Random number integer seed. See set.seed.
formula
A model formula from which the new network(s) should be simulated. By default, the formula is taken from the btergm object.
index
Index of the network from which the new network(s) should be simulated. The index refers to the list of response networks on the left-hand side of the model formula. Note that more recent networks are located at the end of the list. By default, the first
coef
A vector of parameter estimates. By default, the coefficients are extracted from the given btergm object.
verbose
Print additional details while running the simulations?
...
Arbitrary further arguments are handed over to the simulate.formula function. For details, refer to the help page of the simulate.formula<

Details

The simulate.btergm function is a wrapper for the simulate.formula function in the ergm package (see help("simulate.formula")). It can be used to simulate new networks from a btergm object. The index argument specifies from which of the original networks the new network(s) should be simulated. For example, if object is an estimation based on cosponsorship networks from the 99th to the 107th Congress (as in Desmarais and Cranmer 2012), and the cosponsorship network in the 108th Congress should be predicted using the simulate.btergm function, then the argument index = 9 should be passed to the function because the network should be based on the 9th network in the list (that is, the latest network, which is the cosponsorship network for the 107th Congress). Note that all relevant objects (the networks and the covariates) must be present in the workspace (as was the case during the estimation of the model).

References

Desmarais, Bruce A. and Skyler J. Cranmer (2012): Statistical Mechanics of Networks: Estimation and Uncertainty. Physica A 391: 1865--1876.

See Also

xergm-package btergm gof