Learn R Programming

SALTSampler (version 1.1.0)

Diagnostics: Plots and Summaries of RunMh Output

Description

Taking in a mhOut object, this function outputs graphs and summaries to evaluate the performance of an MCMC run on a simplex. In particular, the acceptance rate is outputted for each dimension along with a trace plot. For type 'dirichlet', qqplots of the theoretical versus empirical marginal distributions are also provided for each dimension.

Usage

Diagnostics(mhOut)

Arguments

mhOut

Object outputted by the function RunMH which summarizes a Metropolis Hasting run on a simplex

Examples

Run this code
# NOT RUN {
#Dirichlet run and diagnostic plots
dir <- RunMh(center = c(0.7, 0.2, 0.1), B = 2e3, concentration = 10,
                        h = c(2, 2, 2), type = 'dirichlet', dat = NULL)
Diagnostics(mhOut = dir)
# }

Run the code above in your browser using DataLab