expansions_simulate: Simulate parameters and event times for a genealogy with...

View source: R/expansions_simulate.R

expansions_simulateR Documentation

Simulate parameters and event times for a genealogy with clonal expansionss

Description

Simulate parameters and event times for a genealogy with clonal expansionss

Usage

expansions_simulate(priors, sampling_times, concentration, given = list())

Arguments

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

Value

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


dhelekal/CaveDive documentation built on June 11, 2024, 4:32 p.m.