dmbc_fit_to_mcmc {dmbc}R Documentation

Conversion of an dmbc_fit object to an object of class mcmc.

Description

dmbc_fit_to_mcmc converts an object of class dmbc_fit to an object with class mcmc.

Usage

dmbc_fit_to_mcmc(res, include.burnin = FALSE, verbose = TRUE)

Arguments

res

An object of type dmbc_fit.

include.burnin

A logical scalar. If TRUE the burnin iterations (if available) are not removed.

verbose

A logical scalar. If TRUE prints additional warnings during the conversion.

Value

An object of type mcmc.

Author(s)

Sergio Venturini sergio.venturini@unicatt.it

See Also

dmbc() for for fitting a DMBC model; dmbc_fit-class; mcmc.

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"]], verbose = TRUE)
sim.dmbc <- dmbc(simdiss, p, G, control)
sim.mcmc <- dmbc_fit_to_mcmc(sim.dmbc@results[[1]], TRUE)
plot(sim.mcmc)

## End(Not run)

[Package dmbc version 1.0.1 Index]