Simulate DNC

Description

Use an existing dnc object to simulate new network data.

Usage

1
2
## S3 method for class 'dnc'
simulate(object,nsim=1,seed=NULL,...)

Arguments

object

A dnc class object

nsim

Integer. Number of simulations to perform.

seed

Optional numeric. If is.null(seed) is FALSE then seed is used in a call to set.seed before simulating the network data. The default, NULL, will not change the random generator state.

...

additional optional arguments.

Details

This function uses the posterior mean of the latent positions and model parameters to simulate new network data sets.

Value

A n x n x T x nsim array.

Examples

1
2
3
4
5
6
    data(friendship)
    set.seed(123)
    dncObj <- dnc(friendship,M=4,p=3,method="Gibbs",
                  controls=list(nDraws=250,burnin=50,
                                MaxItStg2=25,epsilonStg2=1e-15))
  newSims = simulate(dncObj,10,123)