Learn R Programming

Bergm (version 5.0.7)

plot.bergm: Plot BERGM posterior output

Description

This function creates MCMC diagnostic plots for bergm objects.

Usage

# S3 method for bergm
plot(x, ...)

Arguments

x

an R object of class bergm.

...

additional arguments, to be passed to lower-level functions.

Examples

Run this code
if (FALSE) {
# Load the florentine marriage network
data(florentine)

# Posterior parameter estimation:
p.flo <- bergm(flomarriage ~ edges + kstar(2),
               burn.in    = 50,
               aux.iters  = 500,
               main.iters = 1000,
               gamma      = 1.2)

# MCMC diagnostics plots:
plot(p.flo)
}

Run the code above in your browser using DataLab