mcmcAnalysis: Summarise and plot tabular MCMC output

Description Usage Arguments References Examples

Description

This function summarises and plots tabular MCMC output such as that generated by the function normgibbs.

Usage

1
2
mcmcAnalysis(mat, rows = 4, lag.max = 100, bins = 30, show = TRUE,
  plot = TRUE)

Arguments

mat

matrix of MCMC output, where the columns represent variables and the rows represent iterations.

rows

number of variables to plot per page on the graphics device.

lag.max

maximum lag for the ACF plots.

bins

approximate number of bins to use for the histograms.

show

a logical. If TRUE, will display numerical summaries on the R console.

plot

a logical. If TRUE, will plot graphical summaries on the default graphics device.

References

A version of mcmcSummary in Darren Wilkinson's package smfsb.

Examples

1
2
posterior=gibbsNormal(N=1000,initial=c(10,0.25),priorparam=c(10,1/100,3,12),n=100,xbar=15,s=4.5)
mcmcAnalysis(posterior,rows=2,bins=10)

nclbayes documentation built on May 2, 2019, 5:53 p.m.