Learn R Programming

Demerelate (version 0.9-2)

weir: Calculation of $F_{is}$ based on Weir and Cockerham 1984

Description

Function used internally by Demerelate and F.stat to calculate $F_{is}$ values based on Weir and Cockerham (1984) statistics.

Usage

weir(tab.pop, tab.freq, popsize)

Arguments

tab.pop
Dataframe following format of inputformat only column three and four are used for calculations.
tab.freq
Vector of allele frequencies with name of each allele in column name.
popsize
Population size.

Value

Details

The function provides the alternative methods to Nei's $F_{is}$ calculation. $F_{is}$ values are calculated according to Weir and Cockerham 1984. Consult references for details

References

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

See Also

Fis.calc F.stat Fis

Examples

Run this code
     ## internal function of F.stat not intended for direct usage
     
     

Run the code above in your browser using DataLab