powered by
hardy.weinberg computes Hardy-Weinberg frequencies for a multiallelic locus using arbitrary allele frequencies.
hardy.weinberg
multilocus.hw computes multilocus Hardy-Weinberg frequencies for a set of biallelic loci.
multilocus.hw
hardy.weinberg(p=c(0.5,0.5), alleles=c("A","a"), as.matrix=FALSE) multilocus.hw(nloci=2, p=NULL)
allele frequencies. In the case of multilocus.hw the frequencies of the dominant (in this case, merely uppercase) allele at each locus.
names of the alleles.
logical argument indicating whether to return the result in the form of a matrix (if TRUE) or a vector.
TRUE
for multilocus.hw the number of loci.
Returns a matrix or vector.
phenotype.freq
# NOT RUN { hardy.weinberg() hardy.weinberg(p=c(0.4,0.3,0.2,0.1),alleles=letters[1:4]) # }
Run the code above in your browser using DataLab