Rev 4383 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{geweke.plot}\alias{geweke.plot}\title{Geweke-Brooks plot}\usage{geweke.plot(x, frac1 = 0.1, frac2 = 0.5, nbins = 20,pvalue = 0.05, auto.layout = TRUE, ask, \dots)}\arguments{\item{x}{an mcmc object}\item{frac1}{fraction to use from beginning of chain.}\item{frac2}{fraction to use from end of chain.}\item{nbins}{Number of segments.}\item{pvalue}{p-value used to plot confidence limits for the null hypothesis.}\item{auto.layout}{If \code{TRUE} then, set up own layout forplots, otherwise use existing one.}\item{ask}{If \code{TRUE} then prompt user before displayingeach page of plots. Default is \code{dev.interactive()} inR and \code{interactive()} in S-PLUS.}\item{\dots}{Graphical parameters.}}\description{If \code{geweke.diag} indicates that the first and last part of a samplefrom a Markov chain are not drawn from the same distribution, it maybe useful to discard the first few iterations to see if the rest of thechain has "converged". This plot shows what happens to Geweke's Z-scorewhen successively larger numbers of iterations are discarded from thebeginning of the chain. To preserve the asymptotic conditions requiredfor Geweke's diagnostic, the plot never discards more than half the chain.The first half of the Markov chain is divided into \code{nbins - 1}segments, then Geweke's Z-score is repeatedly calculated. The firstZ-score is calculated with all iterations in the chain, the secondafter discarding the first segment, the third after discarding the firsttwo segments, and so on. The last Z-score is calculated using only thesamples in the second half of the chain.}\note{The graphical implementation of Geweke's diagnostic was suggestedby Steve Brooks.}\seealso{\code{\link{geweke.diag}}.}\keyword{hplot}