Rev Language Reference


mvEmpiricalTree - Move on an empirical tree distribution

An MCMC move that operates on empirical tree distributions.

Usage

mvEmpiricalTree(Tree tree, Bool metropolisHastings, RealPos weight, Probability tuneTarget)

Arguments

tree : Tree (<stochastic> pass by reference)
The stochastic tree variable on which this moves operates.
metropolisHastings : Bool (pass by value)
If TRUE, use the regular Metropolis-Hastings acceptance ratio. If FALSE, always accept this move and sample every tree uniformly.
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

Example

# Read in tree trace
tree_trace = readTreeTrace("output/my.trees", burnin=0.25)

# Create a distribution of trees
tree ~ dnEmpiricalTree(tree_trace)

# Add an MCMC move
moves[1] = mvEmpiricalTree(tree)

See Also