View source: R/expansions_simulate.R
expansions_simulate | R Documentation |
Simulate parameters and event times for a genealogy with clonal expansionss
expansions_simulate(priors, sampling_times, concentration, given = list())
priors |
List of priors to simulate parameters from. See 'standard priors' for details |
sampling_times |
Vector sampling times, entries must be negative or 0 |
concentration |
Scalar concentration hyperparameter for dirichlet expansion model |
given |
A list of variables with values given. Supported names: 'n_exp' - number of expansions, 'tip_colours' - tip expansion assignment, N' - Background population size, 'K' - Expansion carrying capacities, 't_mid' - Expansion times to midpoints, 'div_times' - Expansion divergence times, 'div_from' - parent lineages |
list of: 'co' - realisation of the prpcess, 'params' - the simulated parameters for the process, 'coal_log_lh' - the process likelihood, 'param_log_lh' - the prior likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.