BayesianTools (version 0.1.0)

getSample: Extracts the sample from a bayesianOutput

Description

Extracts the sample from a bayesianOutput

Usage

getSample(sampler, parametersOnly = T, coda = F, start = 1, end = NULL,
  thin = 1, numSamples = NULL, whichParameters = NULL,
  reportDiagnostics = FALSE, ...)

Arguments

sampler
an object of class mcmcSampler, mcmcSamplerList, smcSampler, smcSamplerList
parametersOnly
if F, likelihood, posterior and prior values are also provided in the output
coda
works only for mcmc classes - provides output as a coda object. Note: if mcmcSamplerList contains mcmc samplers such as DE that have several chains, the internal chains will be collapsed. This may not be the desired behavior for all applications.
start
for mcmc samplers start value in the chain. For SMC samplers, start particle
end
for mcmc samplers end value in the chain. For SMC samplers, end particle
thin
thinning parameter. Either an integer determining the thinning intervall (default is 1) or "auto" for automatic thinning.
numSamples
sample size (only used if thin = 1)
whichParameters
possibility to select parameters by index
reportDiagnostics
logical, determines whether settings should be included in the output
...
further arguments