fit: frequency increment test (FIT) from Feder et al 2014

Description Usage Arguments Value

View source: R/fit_test.R

Description

Computes the frequency increment test (FIT) from Feder, A. F., Kryazhimskiy, S., & Plotkin, J. B. (2014). Identifying signatures of selection in genetic time series. Genetics, 196(2), 509-522. <https://doi.org/10.1534/genetics.113.158220>. The frequency increment test (FIT) rejects neutrality if the distribution of normalized variant frequency increments exhibits a mean that deviates significantly from zero.

Usage

1
fit(time, v, alternative = "two.sided")

Arguments

time

an integer vector of time coordinates for the time-series

v

an integer vector of variant frequencies, i.e. counts of this variant at each time coordinate

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

Value

A two-column data frame with the FIT statistic and its p-value


benmarwick/signatselect documentation built on Dec. 4, 2019, 4:22 p.m.