EcoGenetics (version 1.2.1-6)

eco.dom_af: Compute allele frequencies for dominant data using different methods

Description

Compute allele frequencies for dominant data using different methods

Usage

eco.dom_af(x, method = c("zhivor", "zhivonu", "rawfreq"))

Arguments

x

ecopop or genpop object, or matrix/data.frame with allele frequencies

method

Method used to compute the allelic frequencies. Can be one of 'zhivor' ( Zhivotovsky 1999, with uniform prior), 'zhivonu' (Zhivotovsky 1999, with non uniform prior), 'rawfreq' (square root method).

References

Zhivotovsky, L. A. (1999). Estimating population structure in diploids with multilocus dominant DNA markers. Molecular Ecology, 8:907-913.

Examples

Run this code
# NOT RUN {
data(eco.test)
my_ecopop <- ecogen2ecopop(eco, "pop")
eco.dom_af(my_ecopop)
# }

Run the code above in your browser using DataCamp Workspace