mvAdaptiveRJSwitch - Adaptive reversible-jump (RJ) move
| x : | Real (<stochastic> pass by reference) |
| The variable on which this move operates. | |
| waitBeforeLearning : | Natural (pass by value) |
| Number of tries before learning. | |
| Default : 1000 | |
| waitBeforeUsing : | Natural (pass by value) |
| Number of tries before using. | |
| Default : 10000 | |
| updateEvery : | Natural (pass by value) |
| How frequent to update. | |
| Default : 1 | |
| 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 |
# create a vector of moves
moves = VectorMoves()
# draw a variable from an RJ mixture
theta ~ dnReversibleJumpMixture(0.01,
dnUnif( 0.0, 0.1 ),
0.5)
# place a move on the variable
moves.append( mvAdaptiveRJSwitch(theta,
waitBeforeLearning=100,
waitBeforeUsing=1000,
updateEvery=10,
weight=10.0) )