merge.ergmm {latentnet} | R Documentation |
A merge
method for
ergmm
objects, constructing an
ergmm
object containing the combined MCMC
output (and derived estimates) of several
ergmm
objects produced with the same
input parameters but different starting values, random seeds, etc..
## S3 method for class 'ergmm'
merge(x, y, ..., verbose = FALSE)
x |
The first |
y |
The second |
... |
Additional |
verbose |
If |
An object of class ergmm
.
data(sampson)
# Run two short MCMC-based fits.
samp.fit1 <- ergmm(samplike ~ euclidean(d=2, G=3),
control=ergmm.control(burnin=1000,interval=10,sample.size=2000))
samp.fit2 <- ergmm(samplike ~ euclidean(d=2, G=3),
control=ergmm.control(burnin=1000,interval=10,sample.size=2000))
# Combine them, and summarize the result.
samp.fit <- merge(samp.fit1,samp.fit2)
summary(samp.fit)