cetotrans: From rates to probabilities

View source: R/RatesToProbabilities.R

cetotransR Documentation

From rates to probabilities

Description

cetotrans calculates transition probabilities from colonization and extinction rates for a determined interval of time, when provided.

Usage

cetotrans(c, e, dt = 1)

Arguments

c

Colonization rate.

e

Extinction rate.

dt

Interval of time or a vector of time intervals.

Details

Given a pair of colonization and extinction rates, we can calculate the transition probabilities with the following equations:

T_{01} = (e / (c + e)) * (1 - exp( - (c + e) * dt))

T_{10} = (c / (c + e)) * (1 - exp( - (c + e) * dt))

Value

A matrix with the transition probabilities T_01 and T_10 of the Markov chain associated with the specified colonization and extinction rates.

Examples

cetotrans(0.13, 0.19)
cetotrans(0.2, 0.2, 2)

island documentation built on Jan. 23, 2023, 5:30 p.m.