| get.tfr.mcmc | R Documentation |
The function get.tfr.mcmc retrieves results of an MCMC simulation of Phase II and creates an object of class bayesTFR.mcmc.set. Function has.tfr.mcmc checks the existence of such results. Functions get.tfr3.mcmc and has.tfr3.mcmc do the same for Phase III MCMCs. Function tfr.mcmc extracts a single chain and tfr.mcmc.list extracts several or all chains from the simulation results.
get.tfr.mcmc(sim.dir = file.path(getwd(), "bayesTFR.output"),
chain.ids = NULL, low.memory = TRUE, burnin = 0, verbose = FALSE)
has.tfr.mcmc(sim.dir)
get.tfr3.mcmc(sim.dir = file.path(getwd(), "bayesTFR.output"), ...)
has.tfr3.mcmc(sim.dir)
tfr.mcmc(mcmc.set, chain.id)
tfr.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 |
... |
Arguments passed to |
Function get.tfr.mcmc is an accessor of results generated using run.tfr.mcmc and continue.tfr.mcmc. Function get.tfr3.mcmc can be used to access results generated using run.tfr3.mcmc and continue.tfr3.mcmc.
get.tfr.mcmc and get.tfr3.mcmc return an object of class bayesTFR.mcmc.set. has.tfr.mcmc and has.tfr3.mcmc return a logical value. tfr.mcmc returns an object of class bayesTFR.mcmc, and tfr.mcmc.list returns a list of bayesTFR.mcmc objects.
Hana Sevcikova
bayesTFR.mcmc.set
sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "bayesTFR.output")
m <- get.tfr.mcmc(sim.dir)
summary(m)
# summary of the single chains
for(mc in tfr.mcmc.list(m)) print(summary(mc))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.