Learn R Programming

⚠️There's a newer version (5.2.4) of this package.Take me there.

DDD (version 4.4)

Diversity-Dependent Diversification

Description

Implements maximum likelihood and bootstrap methods based on the diversity-dependent birth-death process to test whether speciation or extinction are diversity-dependent, under various models including various types of key innovations. See Etienne et al. 2012, Proc. Roy. Soc. B 279: 1300-1309, , Etienne & Haegeman 2012, Am. Nat. 180: E75-E89, and Etienne et al. 2016. Meth. Ecol. Evol. 7: 1092-1099, . Also contains functions to simulate the diversity-dependent process.

Copy Link

Version

Install

install.packages('DDD')

Monthly Downloads

829

Version

4.4

License

GPL-3

Maintainer

Rampal Etienne

Last Published

June 2nd, 2020

Functions in DDD (4.4)

bd_loglik

Loglikelihood for diversity-independent diversification model
dd_LR

Bootstrap likelihood ratio test of diversity-dependent diversification model
conv

Function to do convolution of two vectors
dd_KI_loglik

Loglikelihood for diversity-dependent diversification models with decoupling of a subclade from a main clade at time t = t_d
L2phylo

Function to convert a table with speciation and extinction events to a phylogeny
brts2phylo

Function to convert a set of branching times into a phylogeny with random topology This code is taken from the package TESS by Sebastian Hoehna, where the function is called tess.create.phylo
bd_ML

Maximization of the loglikelihood under the diversity-independent, possibly time-dependent diversification model
dd_KI_ML

Maximization of the loglikelihood under a diversity-dependent diversification model with decoupling of a subclade's diversication dynamics from the main clade's dynamics
td_sim

Simulation of a diversity-dependent-like time-dependent process
transform_pars

Transforming parameters from -Inf to Inf into parameters from -1 to 1
dd_KI_sim

Function to simulate a key innovation in macro-evolution with the innovative clade decoupling from the diversity-dependent diversification dynamics of the main clade
L2brts

Function to convert a table with speciation and extinction events to a set of branching times
dd_ML

Maximization of the loglikelihood under a diversity-dependent diversification model
untransform_pars

Untransforming parameters from -1 to 1 into parameters from -Inf to Inf.
dd_MS_ML

Maximization of the loglikelihood under a diversity-dependent diversification model with decoupling of a subclade's diversication dynamics from the main clade's dynamics
dd_SR_ML

Maximization of the loglikelihood under a diversity-dependent diversification model with a shift in the parameters
dd_MS_loglik

Loglikelihood for macro-evolutionary succession under diversity-dependent diversification with the key innovation at time t = t_d
dd_loglik

Loglikelihood for diversity-dependent diversification models
dd_multiple_KI_loglik

Loglikelihood for diversity-dependent diversification models with multiple decoupling (rate shift) events
dd_SR_loglik

Loglikelihood for diversity-dependent diversification models with a shift in the parameters at time t = tshift
dd_SR_sim

Function to simulate the diversity-dependent diversification process with a shift in one or more of the parameters
optimizer

Carries out optimization (finding a minimum)
rng_respecting_sample

Sampling in which zero probabilities are removed
simplex

Carries out optimization using a simplex algorithm (finding a minimum)
dd_MS_sim

Function to simulate the macro-evolutionary succession process assuming diversity-dependent diversification
sample2

Takes samples in the usual manner
phylo2L

Function to convert phylogeny to a table with speciation and extinction events
dd_sim

Function to simulate the diversity-dependent diversification process
roundn

Rounds up in the usual manner