fixationBias: Bias Correction

Description Usage Arguments Value Author(s)

View source: R/estsh.R

Description

fixationBias computes the bias that occurs, when conditioning on fixation of an allele.

Usage

1
fixationBias(traj, t, Ne, N.sim = 10000)

Arguments

traj

numeric matrix of allele frequency trajectories, where rows and columns correspond to individual replicates and time points, respectively.

t

numeric vector indicating the number of generations for each column in traj.

Ne

numeric specifying the effective population size

N.sim

numeric determining the number of simulations that should be performed to correct for bias (by default sim = 10000).

Value

Numeric vector with expected bias at each time point.

Author(s)

Thomas Taus


ThomasTaus/poolSeq documentation built on Feb. 17, 2020, 1:52 p.m.