time_fixation: Conditional fixation time

Description Usage Arguments Details Value Examples

View source: R/speedestimates.R

Description

Mean time until one cell achieves fixation, given that it reaches fixation

Usage

1
time_fixation(r1, r2, K, r_powers_shifted = NA, approx = FALSE)

Arguments

r1

birth rate of non-focus cells, relative to reference birth rate

r2

birth rate of focus cell type, relative to r1

K

deme carrying capacity

r_powers_shifted

optional look-up vector

approx

if TRUE, return the approximate value when r2 -> r1 (weak selection)

Details

See Traulsen 2009, equation 1.38.

Value

The waiting time.

Examples

1
2
time_fixation(1, 1.001, 32)
time_fixation(1, 1.001, 32, approx = TRUE)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.