time_expected: Migration waiting time (any population size)

Description Usage Arguments Details Value Examples

View source: R/speedestimates.R

Description

Expected time of first successful migration, which may occur before fixation

Usage

1
time_expected(r1, r2, K, m, migration_type = 0, d = NA)

Arguments

r1

birth rate of cells in the destination deme, relative to reference birth rate

r2

birth rate of migrating cells, relative to r1

K

deme carrying capacity

m

migration rate per cell, relative to birth rate

migration_type

0 or 1 (see details)

d

migration distance relative to 1/sqrt(K); if NA then d is set to sqrt(K)

Details

Meaning of migration_type:

Value

The waiting time.

Examples

1
2
3
4
5
6
time_expected(1, 1.1, 2, 0.1, 0)
time_expected(1, 1.1, 2, 0.1, 1)

# for comparison:
time_migration(2, 0.1, 1, 1.1, 0)
time_migration(2, 0.1, 1, 1.1, 1)

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