Rev Language Reference


mvSlice - Propose a slice move

Instead of using a fixed move size, `mvSlice` determines the size of a move proposal based on the current shape of the likelihood function. This allows small moves to be proposed in certain parts of parameter space, and large moves in other parts of the space, as appropriate.

Usage

mvSlice(Real x, RealPos window, Bool tune, RealPos weight, Probability tuneTarget, String search_method)

Arguments

x : Real (<stochastic> pass by reference)
The variable on which this move operates
window : RealPos (pass by value)
The window (steps-size) of proposals.
Default : 1
tune : Bool (pass by value)
Should we tune the move during burnin?
Default : TRUE
weight : RealPos (pass by value)
The weight determines the relative frequency with which this move will be attempted. For details, see the description of the 'moveschedule' parameter on the documentation page for 'mcmc()'.
Default : 1
tuneTarget : Probability (pass by value)
The acceptance probability targeted by auto-tuning.
Default : 0.44
search_method : String (pass by value)
The method used to find the slice boundaries.
Default : doubling
Options : stepping_out|doubling

See Also