- phylo
an object of type 'phylo' (see ape documentation)
- tot_time
the age of the phylogeny (crown age, or stem age if known). If working with crown ages, tot_time is given by max(node.age(phylo)$ages).
- f.lamb
a function specifying the time-variation of the speciation rate \(\lambda\). This function as a single argument (time). Any function may be used.
- f.mu
a function specifying the time-variation of the speciation rate \(\mu\). This function as a single argument (time). Any function may be used.
- f
the fraction of extant species included in the phylogeny
- cst.lamb
logical: should be set to TRUE only if f.lamb is constant (i.e. does not depend on time) to use analytical instead of numerical computation in order to reduce computation time.
- cst.mu
logical: should be set to TRUE only if f.mu is constant (i.e. does not depend on time) to use analytical instead of numerical computation in order to reduce computation time.
- expo.lamb
logical: should be set to TRUE only if f.lamb is exponential to use analytical instead of numerical computation in order to reduce computation time.
- expo.mu
logical: should be set to TRUE only if f.mu is exponential to use analytical instead of numerical computation in order to reduce computation time.
- dt
the default value is 0. In this case, integrals in the likelihood are computed using R "integrate" function, which can be quite slow. If a positive dt is given as argument, integrals are computed using a piece-wise contant approximation, and dt represents the length of the intervals on which functions are assumed to be constant. For an exponential dependency of the speciation rate with time, we found that dt=1e-3 gives a good trade-off between precision and computation time.
- cond
conditioning to use to fit the model:
FALSE: no conditioning (not recommended);
"stem": conditioning on the survival of the stem lineage (use when the stem age is known, in this case tot_time should be the stem age);
"crown" (default): conditioning on a speciation event at the crown age and survival of the 2 daugther lineages (use when the stem age is not known, in this case tot_time should be the crown age).