Learn R Programming

Bergm (version 1.4)

mcmc.output: MCMC output diagnostics

Description

This function returns the posterior density estimate and creates simple diagnostic plots for the MCMC produced from a fit.

Usage

mcmc.output(out, 
            lags = 100, 
            chain = 0)

Arguments

out
an R object of class bergm.
lags
count; number of lags for the autocorrelation plots.
chain
count; used to plot the MCMC output of the selected chain (only for population MCMC).

Value

  • posteriormatrix containing the MCMC output for the main chain.
  • dimmodel dimensions.

See Also

bergm.