proposeContinuous {EDISON} | R Documentation |
This function proposes a new real values hyperparameter for the information sharing prior.
proposeContinuous(orig_beta, proposal_range, limit = 30)
orig_beta |
Current value of the hyperparameter. |
proposal_range |
Range for the new value. |
limit |
Hard limit on the range. |
Returns a new uniformly random value within proposal_range
of
orig_beta
and limited by limit
.
Frank Dondelinger
# Previous parameter value
param = runif(1, 0, 1)
# Propose new value within range [0, 1], with proposal width 0.1
new.param = proposeContinuous(param, 0.1, 1)