Description Usage Arguments References Examples
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 |
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. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.