Description Usage Arguments Note Author(s) References See Also Examples
This function calculates the probability values for each migrate-n analyses and creates a matrix with the probabilities values of each model.
1 | Pmmt(mat, lestimate="Bezier")
|
mat |
a matrix returned by function |
lestimate |
a value indicating the likelihood estimate. It can be: (1) "Thermo" for Raw Thermodynamic score; (2) "Bezier" (the default) for Bezier approximated score; or (3) "Hmean" for Harmonic mean. |
function based on recepe (1) find the largest log likelihood, (2) subtract that number form each log likelihood in the list (3) exponentiate each element in the new list (4) sum all elements in the list up, this is the denominator (5) now divide each element in the list by that sum at "https://molevol.mbl.edu/index.php/Migrate_tutorial_2015"
Lizandro N. Peraza-Flores
Beerli, P. & Felsenstein, J. (2001) Maximum likelihood estimation of a
migration matrix and effective population sizes in n subpopulations by
using a coalescent approach. Proceedings of the National Academy
of Sciences, 98, 4563–4568.
1 | # load example data:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.