Learn R Programming

EDISON (version 1.1.1)

proposeContinuous: Propose a new real hyperparameter value.

Description

This function proposes a new real values hyperparameter for the information sharing prior.

Usage

proposeContinuous(orig_beta, proposal_range, limit = 30)

Arguments

orig_beta
Current value of the hyperparameter.
proposal_range
Range for the new value.
limit
Hard limit on the range.

Value

Returns a new uniformly random value within proposal_range of orig_beta and limited by limit.

See Also

ProposeDiscrete

Examples

Run this code

# 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)

Run the code above in your browser using DataLab