Learn R Programming

hierfstat (version 0.5-11)

pairwise.WCfst: Estimates pairwise FSTs according to Weir and Cockerham (1984)

Description

Estimates pairwise FSTs according to Weir and Cockerham (1984)

Usage

pairwise.WCfst(dat,diploid=TRUE)

Arguments

dat

A data frame containing population of origin as the first column and multi-locus genotypes in following columns

diploid

whether the data is from a diploid (default) or haploid organism

Value

A matrix of pairwise FSTs

Details

FST are calculated using Weir & Cockerham (1984) equations for FST', as described in the note section of wc

References

Weir, B.S. (1996) Genetic Data Analysis II. Sinauer Associates.

Weir B.S. and Cockerham C.C. (1984) Estimating F-Statistics for the Analysis of Population Structure. Evolution 38:1358

See Also

pairwise.neifst genet.dist

Examples

Run this code
# NOT RUN {
data(gtrunchier)
pairwise.WCfst(gtrunchier[,-2],diploid=TRUE)

# }

Run the code above in your browser using DataLab