dd_multiple_KI_loglik | R Documentation |
This function computes loglikelihood of a diversity-dependent diversification model for a given set of branching times and parameter values where the diversity-dependent dynamics of subclades decouple from the dynamics of main clades, potentially accompanied by a shift in parameters.
dd_multiple_KI_loglik(
pars1_list,
pars2,
brts_k_list,
missnumspec_list,
reltol = 1e-14,
abstol = 1e-16,
methode = "odeint::runge_kutta_cash_karp54"
)
pars1_list |
list of paramater sets one for each rate regime (subclade). The parameters are: lambda (speciation rate), mu (extinction rate), and K (clade-level carrying capacity). |
pars2 |
Vector of model settings: |
brts_k_list |
list of matrices, one for each rate regime (subclade). Each matrix has in the first row the branching times including the shift/decoupling time and the present time (0) in negative time (i.e. 10 mya = -10). In the second row it has the number of lineages, i.e. starting at 2 for a phylogeny with a crown and increasing by one at each branching time and decreasing by one at each decoupling/shift time. The last element is the same as the second last. |
missnumspec_list |
list containing the number of missing species for each clade. If only a single number m of missing species is known for the entire phylogeny, then each element of the list should be 0:m. One can also create this from m using the function create_missnumspec_list |
reltol |
relative tolerance in integration of the ODE system, default at 1e-14 |
abstol |
tolerance tolerance in integration of the ODE system, default at 1e-16 |
methode |
The method used to solve the master equation, default is 'analytical' which uses matrix exponentiation; alternatively numerical ODE solvers can be used, such as 'odeint::runge_kutta_cash_karp54'. These were used in the package before version 3.1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.