hweTest: Hardy-Weinberg Equilibrium

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hweTest.R

Description

Calculate Hardy-Weinberg equilibrium p-values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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.

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

genepop, hw.test

Examples

1
2

strataG documentation built on Feb. 28, 2020, 9:07 a.m.