dd_KI_loglik(pars1, pars2, brtsM, brtsS, missnumspec, methode = 'analytical')
pars1[1]
corresponds to lambda_M (speciation rate) of the main clade
pars1[2]
corresponds to mu_M (extinction rate) of the main clade
pars1[3]
corresponds to K_M (clade-level carrying capacity) of the main clade
pars1[4]
corresponds to lambda_M (speciation rate) of the subclade
pars1[5]
corresponds to mu_S (extinction rate) of the subclade
pars1[6]
corresponds to K_S (clade-level carrying capacity) of the subclade
pars1[7]
corresponds to t_d (the time of decoupling)
pars2[1]
sets the maximum number of species for which a probability must be computed.
This must be larger than 1 + missnumspec + length(brts).
pars2[2]
sets the model of diversity-dependence:
- pars2[2] == 1
linear dependence in speciation rate with parameter K (= diversity where speciation = extinction)
- pars2[2] == 1.3
linear dependence in speciation rate with parameter K' (= diversity where speciation = 0)
- pars2[2] == 2
exponential dependence in speciation rate with parameter K (= diversity where speciation = extinction)
- pars2[2] == 2.1
variant of exponential dependence in speciation rate with offset at infinity
- pars2[2] == 2.2
1/n dependence in speciation rate
- pars2[2] == 2.3
exponential dependence in speciation rate with parameter x (= exponent)
- pars2[2] == 3
linear dependence in extinction rate
- pars2[2] == 4
exponential dependence in extinction rate
- pars2[2] == 4.1
variant of exponential dependence in extinction rate with offset at infinity
- pars2[2] == 4.2
1/n dependence in extinction rate
pars2[3]
sets the conditioning:
- pars2[3] == 0
no conditioning
- pars2[3] == 1
conditioning on non-extinction of the phylogeny
pars2[4]
sets the time of splitting of the branch that will decouple
pars2[5]
sets whether the parameters and likelihood should be shown on screen (1) or not (0)
pars2[6]
sets whether the first data point is stem age (1) or crown age (2)
dd_KI_ML
,
dd_loglik
dd_SR_loglik
pars1 = c(0.25,0.12,25.51,1.0,0.16,8.61,9.8)
pars2 = c(200,1,0,18.8,1,2)
missnumspec = 0
brtsM = c(25.2,24.6,24.0,22.5,21.7,20.4,19.9,19.7,18.8,17.1,15.8,11.8,9.7,8.9,5.7,5.2)
brtsS = c(9.6,8.6,7.4,4.9,2.5)
dd_KI_loglik(pars1,pars2,brtsM,brtsS,missnumspec,method = 'ode45')
Run the code above in your browser using DataLab