hka_test: Perform the HKA test.

Description Usage Arguments Value References

Description

Perform the HKA test.

Usage

1
2
hka_test(x, y = NULL, simulate = FALSE, nsims = 1000, alpha = 0.05,
  scale = 1, ...)

Arguments

x

an SFS, or a list thereof (one per locus)

y

another SFS; if x not a list, this must be provided

simulate

logical; if TRUE, get p-values by coalescent simulations instead of analytical approximation

nsims

number of simulations to perform (if simulate == TRUE)

alpha

target significance level for parameter estimates (if simulate == TRUE)

scale

the scaling factor for θ; 1 = autosome, 3/4 = X chromosome, 1/4 = Y chromosome or mitochondria

...

ignored

Value

a list of class "htest" with test statistic, degrees of freedom, p-value, and estimates of coalescent parameters

References

Hudson RR, Kreitman M, Aguadé M (1987) A test of neutral molecular evolution based on nucleotide data. Genetics 116: 153-159.


andrewparkermorgan/sfsr documentation built on May 10, 2019, 11:10 a.m.