Description Usage Arguments Details Value Examples
View source: R/DNCRPackageRCode.R
Use an existing dnc
object to simulate new network data.
1 2 |
object |
A |
nsim |
Integer. Number of simulations to perform. |
seed |
Optional numeric. If |
... |
additional optional arguments. |
This function uses the posterior mean of the latent positions and model parameters to simulate new network data sets.
A n x n x T x nsim
array.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.