Description Usage Arguments Value Author(s) See Also Examples
View source: R/proposeContinuous.R
This function proposes a new real values hyperparameter for the information sharing prior.
1 | 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
1 2 3 4 5 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.