proposeContinuous: Propose a new real hyperparameter value.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/proposeContinuous.R

Description

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

Usage

1
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.

Author(s)

Frank Dondelinger

See Also

ProposeDiscrete

Examples

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)

EDISON documentation built on May 2, 2019, 2:39 a.m.