Simulation of Heterochronous Structured Phylogenies
rstrphylo.Rd
Simulates a dated phylogenetic tree under the structured coalescent model
Arguments
- n
Number of samples
- d
Number of demes
- coalescent_rates
Numeric vector giving coalescent rates (inverse effective population sizes) of each deme
- migration_matrix
Numeric matrix giving backwards-in-t migration rates between each pair of demes
- tip_data
nx3 matrix with first column giving tip labels, second column giving tip ages and third column giving tip demes