HWStr | R Documentation |
Function HWStr
is a wrapper function arount HWPerm.mult
and HWChisq
in order to test a set of STRs for Hardy-Weinberg equilibrium.
HWStr(X, test = "permutation", verbose = FALSE, ...)
X |
A data matrix with STRs in columns, with there two alleles coded in successive columns. |
test |
|
verbose |
be silent if set to |
... |
possible extra parameters to be passed on to |
It is recommended to test by a permutation test. By default, 17.000 permutations are used. Exact testing is not implemented. Missing genotypes are excluded on a per STR basis.
A data frame with the
strnames |
STR name |
N |
sample size |
Nt |
number of alleles |
MinorAF |
minor allele frequency |
MajorAF |
major allele frequency |
Ho |
observed heterozygosity |
He |
expected heterozygosity (without bias correction) |
Hp |
Shannon index of allele frequencies |
pval |
p-value of the HWE test |
Jan Graffelman jan.graffelman@upc.edu
HWPerm.mult
, HWChisq
data(NistSTRs)
## Not run:
Results <- HWStr(NistSTRs,test="permutation")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.