Given an old tree, propose a new tree and calculate the original and proposal tree likelihood in the DDT process
proposal_log_prob(
old_tree_phylo4,
tree_kept,
old_detach_pa_div_time,
old_pa_detach_node_label,
old_detach_node_label,
new_div_time,
new_attach_root,
new_attach_to,
c,
c_order = 1
)a list containing the following elements:
q_newa "phylo" tree detached from the input tree
q_oldthe remaining "phylo" tree after detachment
the old "phylo4" object
the remaining "phylo" tree after detachment
a number in (0, 1) indicating the divergence time of the detached node on the old tree
a character label of the parent of the detached node on the old tree
a character label of the detached node on the old tree
a number in (0, 1) indicating the divergence time at which the detached subtree will be re-attached on the proposal tree
a character label of the starting and ending nodes of the branch on the proposal tree, which the detached subtree will be re-attached to
hyparameter of divergence function a(t)
equals 1 (default) or 2 to choose divergence function