e0.coda.list.mcmc | R Documentation |
The functions convert MCMC traces (simulated using run.e0.mcmc
) into objects that can be used with the coda package.
e0.coda.list.mcmc(mcmc.list = NULL, country = NULL, chain.ids = NULL,
sim.dir = file.path(getwd(), "bayesLife.output"),
par.names = NULL, par.names.cs = NULL, low.memory = FALSE, ...)
## S3 method for class 'bayesLife.mcmc'
coda.mcmc(mcmc, country = NULL, par.names = NULL, par.names.cs = NULL, ...)
mcmc.list |
List of |
mcmc |
Object of class |
country |
Country name or code. It is used in connection with the |
chain.ids |
Vector of chain identifiers. By default, all chains available in the |
sim.dir |
Directory with the MCMC simulation results. Only used if |
par.names |
Names of country-independent parameters to be included. |
par.names.cs |
Names of country-specific parameters to be included. The argument |
low.memory |
Logical indicating if the function should run in a memory-efficient mode. |
... |
Additional arguments passed to the coda's |
The function e0.coda.list.mcmc
returns an object of class “mcmc.list”. The function coda.mcmc
returns an object of class “mcmc”, both defined in the coda package.
Hana Sevcikova
e0.partraces.plot
for plotting the MCMC traces and summary.bayesLife.mcmc.set
.
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output")
coda.list <- e0.coda.list.mcmc(sim.dir = sim.dir, country = "France", burnin = 30)
summary(coda.list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.