Rdocumentation
powered by
Learn R Programming
eggCounts (version 0.4-1)
MH_RW_unif01: MH step with uniform (truncated at 0 and 1) proposal around the current value
Description
MH step with uniform (truncated at 0 and 1) proposal around the current value
Usage
MH_RW_unif01(old, logUpost, v)
Arguments
old
current state of the chain
logUpost
function evaluating the log unnormalized marginal posterior
v
tuning parameter, detemines the width of the uniform proposal
Value
new state of the chain with a boolean indicating acceptance as attribute