mvUpDownSlide - Up-Down Proposal for Joint Sliding-Window Adjustments to Multiple Parameters
| delta : | RealPos (pass by value) |
| The scaling factor (strength) of the proposal. | |
| Default : 1 | |
| tune : | Bool (pass by value) |
| Should we tune the scaling factor 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 |
moves = VectorMoves()
log_speciation_rate ~ dnNormal(-1, 0.5)
log_extinction_rate ~ dnNormal(-1, 0.5)
# Define the basic properties of the move
delta_up_down_move = mvUpDownSlide(delta=0.05, weight=5.0)
# Add variables to the move to account for their positive correlation
delta_up_down_move.addVariable(log_speciation_rate, up=TRUE)
delta_up_down_move.addVariable(log_extinction_rate, up=TRUE)
# Apply the move
moves.append( delta_up_down_move )