Description Usage Arguments Value Author(s) References Examples
LikConstantn calculates the likelihood of constant birth and death rates for a given phylogenetic tree, conditioning on the age of the tree and the number of tips.
1 | LikConstantn(lambda,mu,sampling,x,root=1)
|
lambda,mu |
Speciation and extinction rate. |
sampling |
Sampling is the probability of an extant species being sampled and included into the tree. |
x |
Vector of speciation times in the phylogeny. Time is measured increasing going into the past with the present being time 0. x can be obtained from a phylogenetic tree using getx(TREE). |
root |
If root = 1 then max(x) is the mrca (crown age), if root = 0 then max(x) is the age of a branch ancestral to the mrca (stem age). |
res |
-log likelihood birth and death rate given the phylogeny. |
Tanja Stadler
T. Stadler. On incomplete sampling under birth-death models and connections to the sampling-based coalescent. Jour. Theo. Biol. 261: 58-66, 2009.
1 | # see manual of LikShifts()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.