Learn R Programming

strataG (version 2.0.2)

neiDa: Nei's Da

Description

Calcuate frequency-based Nei's Da for haploid or diploid data.

Usage

neiDa(g)

Arguments

g

a '>gtypes object.

Details

Returns Nei's Da for each pair of strata.

References

Nei et al 1983 Accuracy of Estimated Phylogenetic Trees from Molecular Data. J Mol Evol 19:153-170 (eqn 7) Nei, M., and S. Kumar (2000) Molecular Evolution and Phylogenetics. Oxford University Press, Oxford. (pp. 268, eqn 13.6)

Examples

Run this code
# NOT RUN {
data(msats.g)

neiDa(msats.g)
 
# }

Run the code above in your browser using DataLab