transition: Perform a stage-based demographic transition

View source: R/RcppExports.R

transitionR Documentation

Perform a stage-based demographic transition

Description

Perform a stage-based demographic transition

Usage

transition(N, E, alpha, beta, gamma, rand = TRUE, seed = 1L)

Arguments

N

A 3-D array of population numbers for each life stage, over a spatial grid (x, y, class).

E

A 3-D array of environmental data (x, y, variable).

alpha

A matrix of transition intercepts (to, from).

beta

A 3-D array of density dependence effects (to, from, modifier).

gamma

A 3-D array of environmental effects (to, from, variable).

rand

Randomize transitions instead of using matrix multiplication? (Boolean, default = TRUE).

seed

Integer to seed random number generator.

Value

A 3-D array of population numbers for each life stage.


matthewkling/stranger documentation built on Feb. 25, 2024, 2:31 p.m.