simulate.dnc: Simulate DNC

Description Usage Arguments Details Value Examples

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)


Search within the dnc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.