TreePar: Estimating birth and death rates based on phylogenies

(i) For a given species phylogeny on present day data which is calibrated to calendar-time, a method for estimating maximum likelihood speciation and extinction processes is provided. The method allows for non-constant rates. Rates may change (1) as a function of time, i.e. rate shifts at specified times or mass extinction events (likelihood implemented as LikShifts, optimization as bd.shifts.optim and visualized as bd.shifts.plot) or (2) as a function of the number of species, i.e. density-dependence (likelihood implemented as LikDD and optimization as bd.densdep.optim) or (3) extinction rate may be a function of species age (likelihood implemented as LikAge and optimization as bd.age.optim.matlab). Note that the methods take into account the whole phylogeny, in particular it accounts for the "pull of the present" effect. (1-3) can take into account incomplete species sampling, as long as each species has the same probability of being sampled. For a given phylogeny on higher taxa (i.e. all but one species per taxa are missing), where the number of species is known within each higher taxa, speciation and extinction rates can be estimated under model (1) (implemented within LikShifts and bd.shifts.optim with groups !=0). (ii) For a given phylogeny with sequentially sampled tips, e.g. a virus phylogeny, rates can be estimated under a model where rates vary across time using bdsky.stt.optim based on likelihood LikShiftsSTT (extending LikShifts and bd.shifts.optim). Furthermore, rates may vary as a function of host types using LikTypesSTT (multitype branching process extending functions in R package diversitree). This function can furthermore calculate the likelihood under an epidemiological model where infected individuals are first exposed and then infectious.

AuthorTanja Stadler
Date of publication2015-01-02 17:48:44
MaintainerTanja Stadler <>

View on CRAN


addroot Man page
bd.age.optim.matlab Man page
bd.densdep.optim Man page
bd.shifts.optim Man page
bd.shifts.plot Man page
bdsky.stt.optim Man page
create.mat Man page
get.groups Man page
LikAge Man page
LikConstant Man page
LikConstantn Man page
LikDD Man page
LikShifts Man page
LikShiftsPP Man page
LikShiftsSTT Man page
LikTypesSTT Man page
TreePar Man page
TreePar-package Man page


TreePar/R/bd.MEyule.optim.R TreePar/R/p.R TreePar/R/integrator2.R TreePar/R/partransform.R TreePar/R/BDSSanal.R TreePar/R/Fderifuncshifth.R TreePar/R/interstt.R TreePar/R/bd.ME.optim.rho.R TreePar/R/bd.shifts.optim.R TreePar/R/partransformvector.R TreePar/R/inter.R TreePar/R/bdsky.stt.optim.R TreePar/R/LikShiftsSTT.R TreePar/R/bd.groups.conf.R TreePar/R/integrator2-orig.R TreePar/R/bd.densdep.optim.discrete.R TreePar/R/LikDD.R TreePar/R/qhelp.R TreePar/R/bdtypes.stt.lik.orig.R TreePar/R/p1.R TreePar/R/bd.densdep.optim.R TreePar/R/getmatrix.R TreePar/R/create.mat.R TreePar/R/ai.R TreePar/R/integrator.R TreePar/R/integrator-orig.R TreePar/R/Ffuncshift.R TreePar/R/bd.ME.optim.rho.all.R TreePar/R/bd.shifts.plot.R TreePar/R/bi.R TreePar/R/p0.R TreePar/R/lambFun.R TreePar/R/HelpShiftsPPn.R TreePar/R/LikShifts.R TreePar/R/LikAge.R TreePar/R/Fderifuncshift.R TreePar/R/ TreePar/R/ TreePar/R/g.R TreePar/R/LikConstant.R TreePar/R/lineages.R TreePar/R/q2.R TreePar/R/R0types.R TreePar/R/qfuncsky.R TreePar/R/LikTypesSTT.R TreePar/R/pnshift.R TreePar/R/bd.age.optim.matlab.R TreePar/R/addroot.R TreePar/R/get.times2.R TreePar/R/bd.groups.optim.R TreePar/R/Ffuncshifth.R TreePar/R/pn.R TreePar/R/qfuncskylog.R TreePar/R/get.groups.R TreePar/R/treemrcabdtreepar.R TreePar/R/const.R TreePar/R/LikShiftsPP.R TreePar/R/bd.ME.optim.R TreePar/R/LikConstantn.R
TreePar/man/addroot.Rd TreePar/man/LikDD.Rd TreePar/man/bd.shifts.plot.Rd TreePar/man/LikShiftsSTT.Rd TreePar/man/LikAge.Rd TreePar/man/create.mat.Rd TreePar/man/TreePar-package.Rd TreePar/man/bd.age.optim.matlab.Rd TreePar/man/LikTypesSTT.Rd TreePar/man/LikShiftsPP.Rd TreePar/man/get.groups.Rd TreePar/man/bd.shifts.optim.Rd TreePar/man/bd.densdep.optim.Rd TreePar/man/bdsky.stt.optim.Rd TreePar/man/LikShifts.Rd TreePar/man/LikConstantn.Rd TreePar/man/LikConstant.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.