calcFStats {relSim}R Documentation

Calculate locus-wise and population θ=FST\theta = F_{ST}, F=FITF = F_{IT}, and f=FISf = F_{IS} values

Description

This procedure uses the method of Weir and Cockerham to estimate θ=FST\theta = F_{ST}, F=FITF = F_{IT}, and f=FISf = F_{IS} for a population with known substructure

Usage

calcFStats(Pop, subPopIdx = NULL)

Arguments

Pop

An object type 'population'

subPopIdx

If this vector is not null, then it must consist of NN elements with values from 1 to nsn_s representing which subpopulation each member of Pop$profiles belongs to. If it is null then it is assumed that the population consists of nsn_s subpopulations of equal size NsN_s so that ns×Ns=Nn_s\times N_s = N

Value

A vector of length nloci+1n_{loci}+1 with locus-wise θ\theta values and an overall θ\theta value for the population

Author(s)

James M. Curran

References

Weir, B.S., Genetic Data Analysis II, (1996) p.173–179, Sinauer, Sunderland, MA.

See Also

breedFst

Examples


data(USCaucs)
set.seed(123)
p = breedFst(USCaucs)
fstats = calcFStats(p)
fstats


[Package relSim version 1.0.0 Index]