disp_rate: Expected disperal speed for migration model

Description Usage Arguments Value Examples

View source: R/speedestimates.R

Description

Expected disperal speed for migration model, allowing dispersal to occur before fixation

Usage

1
2
disp_rate(r1, r2, K, m, migration_type = 0, symmetric = FALSE,
  two_dim = TRUE, d = NA, approx = FALSE)

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)

symmetric

whether migration occurs in both directions

two_dim

whether to adjust for two-dimensional growth

d

migration distance relative to 1/sqrt(K)

approx

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

Value

The growth rate of the radius, measured in cells (not demes).

Examples

1
2
3
4
5
6
7
8
9
disp_rate(1, 1.01, 2, 0.1, 0)
disp_rate(1, 1.01, 2, 0.1, 0, approx = TRUE)
disp_rate(1, 1.01, 2, 0.1, 1)

# no difference between migration_type = 0 and migration_type = 1 when r1*r2 = 1:
sapply(0:1, disp_rate, r1 = 0.5, r2 = 2, K = 32, m = 0.1)

# otherwise expect a difference:
sapply(0:1, disp_rate, r1 = 0.5, r2 = 3, K = 32, m = 0.1)

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