Colonization and extinction rates calculator for expressions.

Description

rates_calculator Calculate colonization and extinction rates depending of their expressions.

Usage

1
rates_calculator(params, exp1, exp2, t)

Arguments

params

A vector with priors of the parameters in exp1 and exp2.

exp1

Expression for colonization.

exp2

Expression for extinction.

t

Number of colonization and extinction pairs required.

Value

A matrix with the colonization and extinction rates.

See Also

all_environmental_fit

Examples

1
2
3
rates_calculator(c(-0.00497925, -0.01729602, 0.19006501,
0.93486956), expression(params[1] * idaho[[2]]$TOTAL.ppt[i] + params[3]),
expression(params[2] * idaho[[2]]$ANNUAL.temp[i] + params[4]), 21)