pr_hemiplasy: Probability of incongruence due to hemiplasy in a...

Description Usage Arguments Value See Also

Description

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.

Usage

1
pr_hemiplasy(this, desc_a, desc_b, sib, anc, mu_rate, mode = "standard")

Arguments

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".

Value

Numeric, a probability

See Also

pr_homoplasy, calc_hrf, tree_hrf


guerreror/pepo documentation built on May 23, 2019, 9:01 p.m.