plotMCMCdiag: show trace plots and diagnostic density plots

Description Usage Arguments Examples

View source: R/plotMCMCdiag.R

Description

Show trace plots and diagnostic density plots of a fitted model object of class "BayesSUR".

Usage

1
plotMCMCdiag(object, nbloc = 3, header = "", ...)

Arguments

object

an object of class "BayesSUR"

nbloc

number of splits for the last half iterations

header

the main title

...

other arguments for the plots of the log-likelihood and model size

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data("example_eQTL", package = "BayesSUR")
hyperpar <- list( a_w = 2 , b_w = 5 )

fit <- BayesSUR(Y = example_eQTL[["blockList"]][[1]], 
                X = example_eQTL[["blockList"]][[2]],
                data = example_eQTL[["data"]], outFilePath = tempdir(),
                nIter = 100, burnin = 0, nChains = 2, gammaPrior = "hotspot",
                hyperpar = hyperpar, tmpFolder = "tmp/" )

## check output
plotMCMCdiag(fit)

BayesSUR documentation built on Dec. 18, 2019, 1:42 a.m.