if (FALSE) {
# Load the florentine marriage network:
data(florentine)
# MCMC sampling and evidence estimation:
CJE <- evidence(evidence.method = "CJ",
formula = flomarriage ~ edges + kstar(2),
main.iters = 30000,
burn.in = 2000,
aux.iters = 1000,
num.samples = 25000,
V.proposal = 2.5,
ladder = 100,
seed = 1)
# Posterior summaries:
summary(CJE)
# MCMC diagnostics plots:
plot(CJE)
# Log-evidence (marginal likelihood) estimate:
CJE$log.evidence
}
Run the code above in your browser using DataLab