| coda.list.mcmc {bayesTFR} | R Documentation |
Convertion to coda's Objects
Description
The functions convert MCMC traces (simulated using run.tfr.mcmc and run.tfr3.mcmc) into objects that can be used with the coda package.
Usage
coda.list.mcmc(mcmc = NULL, country = NULL, chain.ids = NULL,
sim.dir = file.path(getwd(), "bayesTFR.output"),
par.names = tfr.parameter.names(),
par.names.cs = tfr.parameter.names.cs(),
rm.const.pars = FALSE, burnin = 0,
low.memory = FALSE, ...)
coda.list.mcmc3(mcmc = NULL, country = NULL, chain.ids = NULL,
sim.dir = file.path(getwd(), "bayesTFR.output"),
par.names = tfr3.parameter.names(),
par.names.cs = tfr3.parameter.names.cs(),
burnin = 0, low.memory = FALSE, ...)
## S3 method for class 'bayesTFR.mcmc'
coda.mcmc(mcmc, country = NULL,
par.names = NULL, par.names.cs = NULL,
burnin = 0, thin = 1, ...)
Arguments
mcmc |
In |
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. In |
par.names.cs |
Names of country-specific parameters to be included. The argument |
rm.const.pars |
Logical indicating if parameters with constant values should be removed. |
burnin |
Burnin indicating how many iterations should be removed from the beginning of each chain. |
low.memory |
Logical indicating if the function should run in a memory-efficient mode. |
thin |
Thinning interval. |
... |
Additional arguments passed to the coda's |
Details
Function coda.list.mcmc is for accessing all chains of phase II MCMCs; Function coda.list.mcmc3 is for accessing all chains of phase III MCMCs.
Value
The function coda.list.mcmc and coda.list.mcmc3 return an object of class “mcmc.list”. The function coda.mcmc returns an object of class “mcmc”, both defined in the coda package.
Author(s)
Hana Sevcikova