Learn R Programming

strataG (version 1.0.5)

wrightFst: Wright's Fst

Description

Calcualte Wright's Fst from Ne, dispersal, and generation time.

Usage

wrightFst(Ne, dispersal, gen.time, ploidy)

Arguments

Ne
Effective population size.
dispersal
migration rate in terms of probability of an individual migrating in a generation.
gen.time
number of generations since ancestral population.
ploidy
ploidy of the locus

See Also

numGensEq, fstToNm, expectedNumAlleles

Examples

Run this code
dispersal <- seq(0.05, 0.8, by = 0.05)
fst <- wrightFst(100, dispersal, 20, 2)
plot(dispersal, fst, type = "l")

Run the code above in your browser using DataLab