Arguments
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).
t
The time of rate shifts (t[1]=0 is required, being the present). An entry in t may not coincide with an entry in x.
lambda,mu
Vectors of the same length as t. l[i] (resp. mu[i]) specifies the speciation (resp. extinction rate) prior to t[i].
sampling
Sampling is the probability of an extant species being sampled and included into the tree.
survival
If survival = 1: The likelihood is conditioned on survival of the process (recommended). Otherwise survival = 0.
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).
n
If n != 0 the likelihood is conditioned on n extant sampled tips and tree age max(x).