ibm-package: Individual based models in R

ibm-packageR Documentation

Individual based models in R

Description

Implementation of some (simple) Individual Based Models and methods to create new ones, particularly for population dynamics models (reproduction, mortality and movement). The basic operations for the simulations are implemented in Rcpp for speed.

Author(s)

Ricardo Oliveros-Ramos <ricardo.oliveros@gmail.com>

Examples

## Not run: 
set.seed(880820)
par = list(alpha=5e-4, beta=5e-4, r=0.1, m=0.05, D=list(N=8e-5, P=8e-5), 
L=list(N=0.2, P=0.2))
N0 = with(par, m/(2*beta*L$P))
P0 = with(par, r/(2*alpha*L$N))
par$initial = list(N=round(N0), P=round(P0))
sim = localLotkaVolterra(par, T=240, replicates=100, maxpop = 1e4)
plot(sim)

## End(Not run) 

roliveros-ramos/ibm documentation built on Feb. 18, 2024, 9:53 a.m.