AdaptiveLogDirMRW
AdaptiveLogDirMRW
R6Class
with methods for updating a DirichletNode instance.cov
burnin
tune
naccept
ncalls
update
has been callednode
new(node, toupdate = function() 1:length(node$getData()), tune = rep(0.1, length(node$getData())), burning = 100)
update()
node
acceptance()
node
, with the $d$th element updated to ensure that the vector sums to 1.
This makes the updater useful for Dirichlet distributed random variables, improving on AdaptiveDirMRW by
ensuring proposals do not go negative.For details of the adaptive scheme, see Roberts and Rosenthal (2012) Examples of Adaptive MCMC. Journal of Computational and Graphical Statistics. 18:349--367.
Please note that no checks are performed as to the suitability of this algorithm for a particular StochasticNode. It is up to the user to use the correct update algorithm for the appropriate nodes.