Description Usage Arguments Author(s)
View source: R/mbd_loglik_utils.R
Function to build a matrix, used in creating the A and B operators. It produces the structure q ^ (m - n) * (1 - q) ^ (k + 2 * n-m) * sum_j 2 ^ j choose(k, j) * choose(n, m - n - j)
1 | hyper_matrix2(n_species, k, q)
|
n_species |
number of species. |
k |
the number of visible species in the phylogeny at a given time. |
q |
the single-lineage speciation probability at a triggered event. |
Hanno Hildenbrandt, adapted by Giovanni Laudanno
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.