Learn R Programming

strataG (version 2.0.2)

hweTest: Hardy-Weinberg Equilibrium

Description

Calculate Hardy-Weinberg equilibrium p-values.

Usage

hweTest(g, use.genepop = FALSE, B = 1000, show.output = FALSE,
  delete.files = TRUE, label = "HWE.genepop", ...)

Arguments

g

a '>gtypes object.

use.genepop

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

B

the number of replicates for the Monte Carlo procedure for hw.test.

show.output

logical. Show output from GENEPOP?

delete.files

logical. Delete GENEPOP files when done?

label

character string to use to label GENEPOP files.

...

arguments to be passed to genepop.

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