generate_removalReplacement: Calculation of magnitude of population replacement in each...

Description Usage Arguments Details Author(s)

Description

Generates the number of variants to be removed and to be added in each timestep.

Usage

1
generate_removalReplacement <- function(popSize, timePoints, r, nSamples)

Arguments

popSize

vector containing the the population sizes for each time step between t1 and tnSamples

timePoints

vector specifying the time points tj, j=1,...,nSamples

r

fraction of the population to be removed in each time step

nSamples

number of observed samples

Details

This function calculates the number of variants to be removed from the population (determined by fraction r) and the number of variants to be added so that the desired popualtion size is reached in each time step.

Author(s)

Clementine Straub


annenna4/culturechange documentation built on May 30, 2019, 6:54 p.m.