Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

merge.ergmm

Merge two or more replications of ERGMM fits


Description

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..

Usage

## S3 method for class 'ergmm'
merge(x, y, ..., verbose = FALSE)

Arguments

x

The first ergmm object to be merged.

y

The second ergmm object to be merged.

...

Additional ergmm objects to be merged.

verbose

If TRUE, marks the progress of merging.

Value

An object of class ergmm.

See Also

Examples

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)

latentnet

Latent Position and Cluster Models for Statistical Networks

v2.10.5
GPL-3 + file LICENSE
Authors
Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Mark S. Handcock [aut], Susan M. Shortreed [ctb], Jeremy Tantrum [ctb], Peter D. Hoff [ctb], Li Wang [ctb], Kirk Li [ctb], Jake Fisher [ctb], Jordan T. Bates [ctb]
Initial release
2020-03-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.