Learn R Programming

MHadaptive (version 1.1-8)

plotMH: Plot MCMC results of a call to Metro_Hastings().

Description

This function plots histograms and traces of each parameter of the Bayesian model.

Usage

plotMH(mcmc_object, correlogram = TRUE)

Arguments

mcmc_object
an object returned by a call to Metro_Hastings()
correlogram
logical: if TRUE, plots a pairwise correlogram of each parameter in the model.

Value

NULL

See Also

Metro_Hastings,BCI, mcmc_thin

Examples

Run this code
data(mcmc_r)
plotMH(mcmc_r) ## Plot the results of a simple Bayesian linear regression

Run the code above in your browser using DataLab