Learn R Programming

strataG (version 2.4.905)

hweTest: Hardy-Weinberg Equilibrium

Description

Calculate Hardy-Weinberg equilibrium p-values.

Usage

hweTest(
  g,
  use.genepop = FALSE,
  which = c("Proba", "excess", "deficit"),
  enumeration = FALSE,
  dememorization = 10000,
  batches = 20,
  num.rep = 5000,
  delete.files = TRUE,
  label = NULL
)

Arguments

g

a '>gtypes object.

use.genepop

logical. Use GENEPOP to calculate HWE p-values? If FALSE then hw.test is used.

which, enumeration, dememorization, batches

parameters for GENEPOP MCMC HWE procedure as defined in test_HW.

num.rep

the number of replicates for the Monte Carlo procedure for hw.test or number of iterations for test_HW.

delete.files

logical. Delete GENEPOP files when done?

label

character string to use to label GENEPOP files.

Value

a vector of p-values for each locus.

See Also

genepop, hw.test

Examples

Run this code
# NOT RUN {
data(msats.g)
hweTest(msats.g)

# }

Run the code above in your browser using DataLab