Last chance! 50% off unlimited learning
Sale ends in
rergm
is used to draw from exponential family random network
models in their natural parameterizations.
See ergmm
for more information on these models.rergm(object, ...)## S3 method for class 'default':
rergm(object,\dots,prob,theta0,n=1,
directed=TRUE,numedges=NULL)
## S3 method for class 'ergmm':
rergm(object, mkl = TRUE, n = 1, \dots)
ergmm
.
If the number of nodes in the network is given then
Bernoulli networks are drawn.TRUE
, we will use the minimum Kullback-Leibler positions as the basis of the simulation (rather than the default MLE positions).rergm
returns an object of class network.series
that is a list
consisting of the following elements:ergmm
object
then this defines the model.
If this is not given as the
first argument then a Bernoulli network is generated with the probability
of ties defined by prob
or theta0
. Note that the first network is sampled after burnin
+ interval
steps, and any subsequent networks are sampled each
interval
steps after the first.
More information can be found by looking at the documentation of
ergmm
.
#
# Let's draw from a Bernoulli model with 16 nodes
# and tie probability 0.1
#
g.use <- rergm(16,prob=0.1,directed=FALSE)
#
data(sampson)
gest <- ergmm(samplike ~ latent(k=2))
summary(gest)
#
# Draw from the fitted model
#
g.sim <- rergm(gest,n=100,burnin=1000,interval=1000)
g.sim
Run the code above in your browser using DataLab