powered by
plot trace plots of MCMC samples of parameters for visual inspection of MCMC convergence
plotTrace(out, para = c("del"), linecolor = "blue", ...)
trace plots of delta, sigma and lambda
the output of the function bmdsMCMC
bmdsMCMC
names of the parameters for trace plots. It should be any subvector of c("del","sigma", "lambda") (default=c("del"))
line color. The default color is blue.
arguments to be passed to methods
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
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