checkChains  R Documentation 
Facilitates a graphical check of the Markov chain Monte Carlo samples ("chains") corresponding to vertical slices of the logdensity function estimate at five representative abscissa values.
checkChains(fitObject,locations = "equallyspaced")
fitObject 

locations 
Character string that specifies the locations of the vertical slices for the chains to be displayed. The
options are: 
A graphic is produced that summarises the Markov chain Monte Carlo samples ("chains") corresponding to vertical slices of the logdensity function estimate at five representative abscissae. If the location is specified to be "equallyspaced" and the range.x array of the density estimate is the interval [a,b] then the abscissae are a + j(ba)/6 for j=1,2,3,4,5. If the location is specified to be "hexiles" then the abscissae are the sample hexiles of the data. The columns of the graphic are the following summaries of each chain: (1) trace (time series) plot, (2) lag1 plot in which each chain value is plotted against its previous value and (3) sample autocorrelation function plot as produced by the R function acf().
Matt P. Wand matt.wand@uts.edu.au
library(densEstBayes) ; data(OldFaithful2011)
# Obtain a density estimate for the `OldFaithful2011' data:
dest < densEstBayes(OldFaithful2011)
# Obtain a graphic for checking the chains:
checkChains(dest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.