delta: Delta

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/delta.R

Description

This function calculates delta (δ), the differential between allelic frequencies in two populations. It is called by the function prepare.data.

Usage

1
delta(SpA, SpB)

Arguments

SpA

a vector of population allele frequencies.

SpB

a vector of population allele frequencies.

Details

This function calculates the allele frequency differential for a pair of species or populations (δ, Gregorius and Roberds 1986) for a single locus.

delta = sigma(|f_i1 - f_i2|/2)

where f_{i1} and f_{i2} denote the frequency of the ith allele in populations one and two, respectively. δ ranges from 0, for identical populations, to 1, for populations that share no alleles in common.

Value

This function returns a vector of length one with the value of δ.

Author(s)

Zachariah Gompert [email protected], C. Alex Buerkle [email protected]

References

Gregorius, H. R. and Roberds, J. H. (1986) Measurement of genetical differentiation among subpopulations. Theoretical and Applied Genetics, 71, 826-834.

See Also

prepare.data

Examples

1
2
3
4
5
6
## allele frequencies for two populations
pop.a<-c(0.3,0.5,0.2)
pop.b<-c(0.1,0.1,0.8)

## delta calculation
delta(pop.a,pop.b)

introgress documentation built on May 29, 2017, 9:07 p.m.