Learn R Programming

bayMDS (version 2.0)

plotTrace: trace plots of MCMC samples

Description

plot trace plots of MCMC samples of parameters for visual inspection of MCMC convergence

Usage

plotTrace(out, para = c("del"), linecolor = "blue", ...)

Value

trace plots of delta, sigma and lambda

Arguments

out

the output of the function bmdsMCMC

para

names of the parameters for trace plots. It should be any subvector of c("del","sigma", "lambda") (default=c("del"))

linecolor

line color. The default color is blue.

...

arguments to be passed to methods

Details

Notes

  • If "del" is in para, trace plots of the Euclidean distances from 4 randomly selected pairs will be given

  • If "lambda" is in para, trace plots of the first four elements of Lambda, the diagonal prior variance of objects, will be given

  • If "sigma" is in para, trace plot and ACF(Auto Correlation Function) plot of sigma, the errorvariance will be given

Examples

Run this code
data(cityDIST)
result <- bmdsMCMC(cityDIST,p=3,nwarm=1000,niter=2000)
plotTrace(result,para=c("del","sigma", "lambda"))

Run the code above in your browser using DataLab