Usage
Metropolis(bayesianSetup, settings = list(startValue = NULL, optimize = T,
proposalGenerator = NULL, consoleUpdates = 100, burnin = 0, thin = 1, parallel
= NULL, adapt = T, adaptationInterval = 500, adaptationNotBefore = 3000,
DRlevels = 1, proposalScaling = NULL, adaptationDepth = NULL,
temperingFunction = NULL, gibbsProbabilities = NULL, message = TRUE))
Arguments
bayesianSetup
either an object of class bayesianSetup created by createBayesianSetup
(recommended), or a log target function settings
a list of settings - possible options follow below
startValue
startValue for the MCMC and optimization (if optimize = T). If not provided, the sampler will attempt to obtain the startValue from the bayesianSetup
optimize
logical, determines whether an optimization for start values and proposal function should be run before starting the sampling
proposalScaling
additional scaling parameter for the proposals, needs to be as long as DRlevels. Defaults to 0.5^(- 0:(mcmcSampler$settings$DRlevels -1)
burnin
number of iterations treated as burn-in. These iterations are not recorded in the chain.
thin
thinning parameter. Determines the interval in which values are recorded.
consoleUpdates
integer, determines the frequency with which sampler progress is printed to the console
adapt
logical, determines wheter an adaptive algorithm should be implemented. Default is TRUE.
adaptationInterval
integer, determines the interval of the adaption if adapt = TRUE.
adaptationNotBefore
integer, determines the start value for the adaption if adapt = TRUE.
DRlevels
integer, determines the number of levels for a delayed rejection sampler. Default is 1, which means no delayed rejection is used.
temperingFunction
function to implement simulated tempering in the algorithm. The function describes how the acceptance rate will be influenced in the course of the iterations.
gibbsProbabilities
vector that defines the relative probabilities of the number of parameters to be changes simultaniously.
message
logical determines whether the sampler's progress should be printed