plotTrace: trace plots of MCMC samples

View source: R/plotTrace.R

plotTraceR Documentation

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", ...)

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

Value

trace plots of delta, sigma and lambda

Examples

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

bayMDS documentation built on Nov. 10, 2022, 5:07 p.m.

Related to plotTrace in bayMDS...