Computes the likelihood of a structured phylogenetic tree under the structured coalescent model
Usage
structured_coalescent_likelihood(strphylo, coal_rate, bit_mig_mat)
Arguments
- strphylo
Structured dated phylogeny
- coal_rate
Vector of coalescent rate in each deme (1 / effective population size)
- bit_mig_mat
Matrix of backwards-in-time migration rates between pairs of demes
Value
List containing log-likelihood and likelihood of the structured phylogenetic tree