Proposal function for MCMC random walk, taking random steps of a given size.

univ_proposal(values, lower_bounds, upper_bounds, steps, index)

Arguments

values

a vector of the parameters to be explored

lower_bounds

a vector of the low allowable bounds for the proposal

upper_bounds

a vector of the upper allowable bounds for the proposal

steps

a vector of step sizes for the proposal

index

numeric value for the index of the parameter to be moved from the param table and vector

Value

the parameter vector after step

See also