pbd_loglik: Loglikelihood for protracted birth-death model of diversification
Description
pbd_loglik computes the loglikelihood of the parameters of the protracted speciation model given a set of branching times and number of missing species
Vector of parameters:
pars1[1] corresponds to b (= la_1 in Etienne & Rosindell R2012) = speciation initiation rate
pars1[2] corresponds to mu_1 (= mu_g in Etienne & Rosindell 2012) = extinction rate of good species
pars
pars1f
Vector of functions how the rates depend on time, default functions are constant functions of the parameters in pars1:
pars1f[1] corresponds to time-dependence of b (= la_1 in Etienne & Rosindell R2012) = speciation initiation rate
p
pars2
Vector of model settings:
pars2[1] {set the conditioning on non-extinction of the clade (1) or not (0)
}
pars2[2] {sets whether the likelihood is for the branching times (0) or the phylogeny (1)
}
pars2[3]
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