Description Usage Arguments Details Author(s) References
View source: R/get_default_initpars.R
Returns default initial parameter values used to fit optim
models to
phylogenies with run_optim. Called by run_optim()
.
1 | get_default_initpars(true_pars, optim, brts)
|
true_pars |
numeric vector. The true parameter values used to simulate the trees. |
optim |
character, name of the optimisation model, either |
brts |
numeric vector, a set of branching times as given by
|
For the DD and TD models, initial parameter values are by default set to the true values used to simulate the trees. For thr CR model, la0 is set to the expected speciation rate, knowing the age, number of tips and the extinction rate for the tree. This is computed using equation (15) from Kendall (1948) for the expected number of particles over time in a constant-rate birth-death process.
Théo Pannetier
Kendall, David G. On the Generalized "Birth-and-Death" Process. Ann. Math. Statist. 19 (1948), no. 1, 1–15. doi:10.1214/aoms/1177730285
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.