plotMCMCdiag {BayesSUR} | R Documentation |
plot MCMC diagnostic plots
Description
Show trace plots and diagnostic density plots of a fitted model object of class BayesSUR
.
Usage
plotMCMCdiag(x, nbloc = 3, HIWg = NULL, header = "", ...)
Arguments
x |
an object of class |
nbloc |
number of splits for the last half iterations after substracting burn-in length |
HIWg |
diagnostic plot of the response graph. Default is |
header |
the main title |
... |
other arguments for the plots of the log-likelihood and model size |
Examples
data("exampleEQTL", package = "BayesSUR")
hyperpar <- list(a_w = 2, b_w = 5)
set.seed(9173)
fit <- BayesSUR(
Y = exampleEQTL[["blockList"]][[1]],
X = exampleEQTL[["blockList"]][[2]],
data = exampleEQTL[["data"]], outFilePath = tempdir(),
nIter = 10, burnin = 0, nChains = 1, gammaPrior = "hotspot",
hyperpar = hyperpar, tmpFolder = "tmp/"
)
## check output
plotMCMCdiag(fit)
[Package BayesSUR version 2.2-1 Index]