mvUpDownScale - Up-Down Proposal for Joint Scaling of Multiple Parameters
| lambda : | 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()
speciation_rate ~ dnExponential(10)
extinction_rate ~ dnExponential(10)
# Define the basic properties of the move
up_down_move = mvUpDownScale(lambda=1.0, weight=5.0)
# Add variables to the move to account for their positive correlation
up_down_move.addVariable(speciation_rate, up=TRUE)
up_down_move.addVariable(extinction_rate, up=TRUE)
# Apply the move
moves.append( up_down_move )