HWData {HardyWeinberg} | R Documentation |
HWData takes samples from the multinomial distribution given Hardy-Weinberg allele frequencies.
HWData(n = 100, nm = 100, pfixed = NULL, exactequilibrium = FALSE, pdist = "runif",...)
n |
the sample size. |
nm |
the number of markers (or samples). |
pfixed |
take a fixed allele frequency with value pfixed . |
exactequilibrium |
generate data in exact HWE or use the multinomial distribution |
pdist |
take a random allele frequency from a uniform or beta distribution. |
... |
specific parameters for the uniform or beta |
Xt |
the genotypic counts. |
Xc |
the genotypic compositions. |
Jan Graffelman (jan.graffelman@upc.edu)
HWTernaryPlot
n <- 100 nm <- 100 out <- HWData(n,nm)