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

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

`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` |
If TRUE, will display numerical summaries on the R console |

`plot` |
If TRUE, will plot graphical summaries on the default graphics device |

A version of mcmcSummary in Darren Wilkinson's package smfsb

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)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.