dd_loglik | R Documentation |
This function computes loglikelihood of a diversity-dependent diversification model for a given set of branching times and parameter values.
dd_loglik(pars1, pars2, brts, missnumspec, methode = "analytical")
pars1 |
Vector of parameters:
|
pars2 |
Vector of model settings:
|
brts |
A set of branching times of a phylogeny, all positive |
missnumspec |
The number of species that are in the clade but missing in the phylogeny |
methode |
The method used to solve the master equation, default is 'analytical' which uses matrix exponentiation; alternatively numerical ODE solvers can be used. Before version 3.1 these were solvers from the deSolve package such as 'lsoda' and 'ode45'. Currently solvers from odeint are used, such as 'odeint::runge_kutta_cash_karp54', 'odeint::runge_kutta_fehlberg78', 'odeint::runge_kutta_dopri5', or odeint::bulirsch_stoer'. The first two are recommended in most cases. |
The loglikelihood
Rampal S. Etienne & Bart Haegeman
- Etienne, R.S. et al. 2012, Proc. Roy. Soc. B 279: 1300-1309,
doi: 10.1098/rspb.2011.1439
- Etienne, R.S. & B. Haegeman 2012. Am. Nat.
180: E75-E89, doi: 10.1086/667574
dd_ML
, dd_SR_loglik
,
dd_KI_loglik
dd_loglik(pars1 = c(0.5,0.1,100), pars2 = c(100,1,1,1,0,2), brts = 1:10, missnumspec = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.