summary: Function to summarize MCMC run generated by mcmcabn

summary.mcmcabnR Documentation

Function to summarize MCMC run generated by mcmcabn

Description

Summary method for mcmcabn objects.

Usage

## S3 method for class 'mcmcabn'
summary(object,
     quantiles = c(0.025, 0.25, 0.5, 0.75, 0.975),
     lag.max = 10,
     ...)
     

Arguments

object

object of class mcmcabn.

quantiles

numeric vector of probabilities with values in [0,1]. (Values up to 2e-14 outside that range are accepted and moved to the nearby endpoint.)

lag.max

maximum lag at which to calculate the acf. Default is set to 10.

...

arguments to be passed to methods.

Details

The summary function for mcmcabn objects returns multiple summary metrics for assessing the quality of the MCMC run. Thinning is the number of thinned MCMC steps for one MCMC returned.

Value

This method prints: the number of burn-in steps, the number of MCMC steps, the thinning, the maximum achieved score, the empirical mean of the MCMC samples, the empirical standard deviation of the MCMC samples, the user defined quantiles of the posterior network score, the global acceptance rate, a table of the accepted and rejected moves in function of the methods used, the sample size adjusted for autocorrelation and the autocorrelations by lag.

Author(s)

Gilles Kratzer

References

Scutari, M. (2010). Learning Bayesian Networks with the bnlearn R Package. Journal of Statistical Software, 35(3), 1 - 22. doi:http://dx.doi.org/10.18637/jss.v035.i03.

Examples

## Example from the asia dataset from Lauritzen and Spiegelhalter (1988)
## provided by Scutari (2010)
#summary the MCMC run
summary(mcmc.2par.asia)

mcmcabn documentation built on Sept. 28, 2023, 5:08 p.m.