powered by
Function HWStr is a wrapper function arount HWPerm.mult and HWChisq in order to test a set of STRs for Hardy-Weinberg equilibrium.
HWStr
HWPerm.mult
HWChisq
HWStr(X, test = "permutation", verbose = FALSE, ...)
A data frame with the
STR name
sample size
number of alleles
minor allele frequency
major allele frequency
observed heterozygosity
expected heterozygosity (without bias correction)
Shannon index of allele frequencies
p-value of the HWE test
A data matrix with STRs in columns, with there two alleles coded in successive columns.
permutation for a permutation test, or "chisq" for a chisquare test
permutation
"chisq"
be silent if set to FALSE or print info for each STR if TRUE.
FALSE
TRUE
possible extra parameters to be passed on to HWPerm.mult such as nperm or eps.
nperm
eps
Jan Graffelman jan.graffelman@upc.edu
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.
HWPerm.mult, HWChisq
data(NistSTRs) if (FALSE) { Results <- HWStr(NistSTRs,test="permutation") }
Run the code above in your browser using DataLab