Description Usage Arguments Value Author(s) Examples
This function estimates Nei's Gst parameter and potentially
returns the components of it as well as the probability. The results are returned
as a data.frame
.
1 |
x |
A vector of |
stratum |
Either a vector of strata variables if |
nperm |
The number of permutations to run for significance of the estimator. |
size.correct |
A flag indicating that the estimate should be corrected for based upon sample sizes (default=TRUE). |
An data.frame
with Gst, Ht, and Hs and optionally P
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 7 8 9 | 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))
Gst( locus, Population, nperm=99 )
locus2 <- c(AB,BB,AA,BB,BB,AB,AB,AA,AA,BB)
df <- data.frame( Population, TPI=locus, PGM=locus2 )
Gst( df, nperm=99)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.