get.e0.mcmc | R Documentation |
The function get.e0.mcmc
retrieves results of an MCMC simulation and creates an object of class bayesLife.mcmc.set
. Function has.e0.mcmc
checks the existence of such results. Function e0.mcmc
extracts a single chain, and e0.mcmc.list
extracts several or all chains from the simulation results.
get.e0.mcmc(sim.dir = file.path(getwd(), "bayesLife.output"),
chain.ids = NULL, low.memory = TRUE, burnin = 0, verbose = FALSE)
has.e0.mcmc(sim.dir)
e0.mcmc(mcmc.set, chain.id = 1)
e0.mcmc.list(mcmc.set, chain.ids = NULL)
sim.dir |
Directory where the simulation results are stored. |
chain.ids |
Chain identifiers in case only specific chains should be included in the resulting object. By default, all available chains are included. |
low.memory |
If |
burnin |
Burnin used for loading traces. Only relevant, if |
verbose |
Logical switching log messages on and off. |
chain.id |
Chain identifier. |
mcmc.set |
Object of class |
get.e0.mcmc
returns an object of class bayesLife.mcmc.set
. has.e0.mcmc
returns a logical value.
e0.mcmc
returns an object of class bayesLife.mcmc
, and e0.mcmc.list
returns a list of bayesLife.mcmc
objects.
Hana Sevcikova
bayesLife.mcmc.set
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output")
m <- get.e0.mcmc(sim.dir)
summary(m)
# summary of the world parameters for a single chain
# (the same as above since there is only one chain in this toy example)
summary(e0.mcmc.list(m)[[1]], par.names.cs = NULL)
# the same as
summary(e0.mcmc(m, chain.id = 1), par.names.cs = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.