LikConstantn:
LikConstantn: Calculates the likelihood of constant birth and death rates for a given phylogenetic tree.
Description
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.
Usage
LikConstantn(lambda,mu,sampling,x,root=1)
Arguments
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).
Value
res
-log likelihood birth and death rate given the phylogeny.
References
T. Stadler. On incomplete sampling under birth-death models and connections to the sampling-based coalescent. Jour. Theo. Biol. 261: 58-66, 2009.