Fst {pegas}R Documentation

F-Statistics

Description

This function computes the Fit, Fst and Fis for each locus in the data.

Usage

Fst(x, pop = NULL)

Arguments

x an object of class "loci".
pop a vector or factor giving the population assignment of each row of x, or a single numeric value specifying which column of x to use as population indicator. By default, the column labelled "population" is used.

Details

The formulae in Weir and Cockerham (1984) are used for each allele, and then averaged within each locus over the different alleles as suggested by these authors.

Value

A matrix with genes (loci) as rows and the three F-statistics as columns.

Note

This function has not been tested thoroughly, so the results need to be taken with some caution.

Author(s)

Emmanuel Paradis

References

Weir, B. S. and Cockerham, C. C. (1984) Estimating F-statistics for the analysis of population structure. Evolution, 38, 1358–1370.

See Also

fstat in adegenet

Examples

require(adegenet)
data(nancycats)
x <- as.loci(nancycats)
Fst(x)

[Package pegas version 0.3 Index]