simUntb: Run the Unified Neutral Theory of Biodiversity (UNTB) model

View source: R/simuntb.R

simUntbR Documentation

Run the Unified Neutral Theory of Biodiversity (UNTB) model

Description

This function just provides a wrapper around the untb function in the untb package.

Usage

simUntb(N, y = rep(1, N), m = 0.02, tskip = 0, tend = 5000)

Arguments

N

number of species

y

initial abundances

m

migration probability between 0 and 1

tskip

number of initial time points to be skipped when returning the result (to avoid the transient)

tend

number of time points (i.e. the number of generations)

Value

a matrix with species abundances as rows and time points as columns

See Also

ricker for the Ricker model and glv for the generalized Lotka Volterra model

Examples

N=50
y=generateAbundances(N, mode=5)
tsplot(simUntb(N,y=y,tend=1000))

hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.