Description Usage Arguments Value Author(s) Examples
This function estimates Wright's Fst parameter, the one based upon the variance
in p, most applicable to a 2-allele locus. The results are returned
as a data.frame
.
1 | Fst(x, stratum = "Population", nperm = 0)
|
x |
A |
stratum |
Either the name of the column representing strata in |
nperm |
The number of permutations to run to test Fst=0 hypothesis. |
An data.frame
with Fst, sigma_p (variance among populations), and pq
the total variance at the locus.
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 7 8 9 10 | AA <- locus( c("A","A") )
AB <- locus( c("A","B") )
BB <- locus( c("B","B") )
locus <- c(AA,AA,AA,AA,BB,BB,BB,AB,AB,AA)
Population <- c(rep("Pop-A",5),rep("Pop-B",5))
df <- data.frame(Population,locus)
Fst( df )
locus2 <- c(AA,AA,AA,AA,AA,BB,BB,BB,BB,BB)
df <- data.frame( Population, TPI=locus, PGM=locus2 )
Fst( df )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.