nimble (version 0.7.0)

MCMCsuiteClass-class: Class MCMCsuiteClass

Description

Objects of this class create, run, and organize output from a suite of MCMC algorithms, all applied to the same model, data, and initial values. This can include WinBUGS, OpenBUGS, JAGS and Stan MCMCs, as well as NIMBLE MCMC algorithms. Trace plots and density plots for the MCMC samples may also be generated and saved.

Arguments

See Also

MCMCsuite

Examples

Run this code
# NOT RUN {
code <- nimbleCode({
    mu ~ dnorm(0, 1)
    x ~ dnorm(mu, 1)
})
output <- MCMCsuite(code,
                    data = list(x=3),
                    inits = list(mu=0),
                    niter = 10000,
                    monitors = 'mu',
                    MCMCs = c('nimble', 'nimble_RW'),
                    summaryStats = c('mean', 'sd', 'max', 'function(x) max(abs(x))'),
                    makePlot = FALSE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab