Description Usage Arguments Value
View source: R/optim_base_rate.R
Budding speciation combined with lineage-age dependent trait evolution will cause the rates of trait evolution to vary across the branches of the tree. This function allows one to adjust the base rate used to simulate traits given a target average rate. This function requires the previous usage of ‘sim_Mk_budding_exp’, ‘sim_Mk_trace_history’, ‘sim_BM_budding_exp’, or ‘sim_BM_trace_history’. It is useful to create multiple scenarios of trait evolution while making sure that the average rate across the branch of the tree remains the same.
1 | optim_base_rate(sim, target_mean_rate)
|
sim |
the output from ‘sim_Mk_budding_exp’, ‘sim_Mk_trace_history’, ‘sim_BM_budding_exp’, or ‘sim_BM_trace_history’ |
target_mean_rate |
a numeric value. The target average rate of trait evolution. For discrete traits, this is the equal rates model (ER). |
The base rate parameter which will produce the target average rate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.