Pmmt: Probability values for migrate-n model selection.

Description Usage Arguments Note Author(s) References See Also Examples

Description

This function calculates the probability values for each migrate-n analyses and creates a matrix with the probabilities values of each model.

Usage

1
Pmmt(mat, lestimate="Bezier")

Arguments

mat

a matrix returned by function Lmmat.

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.

Note

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"

Author(s)

Lizandro N. Peraza-Flores

References

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.

See Also

BFmt, LBFmt

Examples

1
# load example data:

lizandropf/mtools documentation built on May 21, 2019, 7:33 a.m.