Description Usage Arguments Value See Also
It assumes: no uncertainty on species tree (A,(B,C)), one sample per species, observed states of binary trait were a=1, b=0, and c=1, branch lengths in coalescent units.
Roughly, it computes the product of the probabilities of events necessary for the observed incongruence. Specifically, the probability of samples a and c coalescing (which includes incomplete lineage sorting in the internal BC branch), and one mutation on the ac branch (which implies no mutations on other branches of the tree).
See documentation of tree_hrf() for description of the three models implemented.
1 | pr_hemiplasy(this, desc_a, desc_b, sib, anc, mu_rate, mode = "standard")
|
this |
Numeric. Branch length of focal internal branch. |
desc_a, desc_b |
Lengths of branches descending from focal branch. |
sib |
Length of sibling branch (leading to tip node C). |
anc |
Length of ancestral branch (the ABC ancestor) |
mu_rate |
Numeric of length 2. Population-wide mutation rate (forward, reverse) |
mode |
String. One of the three models implemented: "standard" (default), "minimal", or "strict". |
Numeric, a probability
pr_homoplasy
, calc_hrf
, tree_hrf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.