## Example from the asia dataset from Lauritzen and Spiegelhalter (1988)
## provided by Scutari (2010)
# The number of MCMC run is deliberately chosen too short (computing time)
# no thinning (usually not recommended)
# no burn-in (usually not recommended,
# even if not supported by any theoretical arguments)
# run: 0.03 REV, 0.03 MBR, 0.94 MC3 MCMC jumps and 3 chains
# with a random DAG as starting point
mcmc.2par.asia.small1 <- CoupledHeatedmcmcabn(score.cache = abnCache.2par.asia,
score = "mlik",
data.dists = dist.asia,
max.parents = 2,
mcmc.scheme = c(100,0,0),
seed = 5416,
verbose = FALSE,
start.dag = "random",
prob.rev = 0.03,
prob.mbr = 0.03,
prior.choice = 2,heating = 0.,n.chains = 3)
summary(mcmc.2par.asia.small1)
# compared to the mcmcabn() function
mcmc.2par.asia.small2 <- mcmcabn(score.cache = abnCache.2par.asia,
score = "mlik",
data.dists = dist.asia,
max.parents = 2,
mcmc.scheme = c(100,0,0),
seed = 5416,
verbose = FALSE,
start.dag = "random",
prob.rev = 0.03,
prob.mbr = 0.03,
prior.choice = 2,heating = 0.25)
summary(mcmc.2par.asia.small2)
Run the code above in your browser using DataLab