dmbc_fit_list_to_list {dmbc} | R Documentation |
Conversion of an dmbc_fit_list
object to a list
.
Description
dmbc_fit_list_to_list
converts an object of class
dmbc_fit_list
to a list of arrays including all the parameter.
chains. It is intended for internal use mainly.
Usage
dmbc_fit_list_to_list(res, include.burnin = FALSE, verbose = TRUE)
Arguments
res |
An object of type |
include.burnin |
A logical scalar. If |
verbose |
A logical scalar. If |
Value
An object of type mcmc.list
.
Author(s)
Sergio Venturini sergio.venturini@unicatt.it
See Also
dmbc()
for for fitting a DMBC model;
dmbc_fit_list-class
.
Examples
## Not run:
data(simdiss, package = "dmbc")
G <- 3
p <- 2
prm.prop <- list(z = 1.5, alpha = .75)
burnin <- 2000
nsim <- 1000
seed <- 2301
set.seed(seed)
control <- list(burnin = burnin, nsim = nsim, z.prop = prm.prop[["z"]],
alpha.prop = prm.prop[["alpha"]], nchains = 2, verbose = TRUE)
sim.dmbc <- dmbc(simdiss, p, G, control)
sim.list <- dmbc_fit_list_to_list(sim.dmbc, TRUE)
library(bayesplot)
mcmc_trace(sim.list, regex_pars = "lambda")
## End(Not run)
[Package dmbc version 1.0.2 Index]