hwde(data = IndianIrish, gp = "Population", termlist = NULL, refmodel = NULL, loci = paste("locus", 1:(dim(data)[2] - 1), sep = ""), observed = "Observed", keep.models = FALSE, aovtable.print = TRUE, group.terms = TRUE, allele.chars = letters)Observed, and one or more columns giving genotype
information,
in the form AA, Aa, aa. or e.g., MM, MN, NN. (The choice of letters
is arbitrary.) Additionally, there may btermlist, specifies a
reference model, which will be updated to include the additional terms.locus1,
locus2, etc.Observed) of the column that
holds the frequenceies.make.contrasts, decode.genotypesdata(IndianIrish)
hwde(data=IndianIrish)
data(mendelABC)
hwde(data=mendelABC, loci=c("seedshape", "cotylcolor", "coatcolor"))Run the code above in your browser using DataLab