Description Usage Arguments Value Author(s) Examples
View source: R/SimPredPreyFn.R
This function simulates using a fifference equation approximation to Lotka-Volterra dynamics
1 | SimPredPreyFn(Nobs, Nt = 100, A = 0.04, B = 0.05, C = 0.2, E = 1)
|
Nobs |
Length of time series data vectors |
Nt |
Number of finite-difference approximations used between time series observations |
A |
Prey intrinsic growth rate |
B |
Prey mortality rate per capita due to per capita predation |
C |
Predator assimilation rate |
E |
Predator mortality rate |
List with observations for prey (X) and predator (Y)
James Thorson
1 2 3 4 5 | # Time series length
Nobs = 100
# Generate Lotka-Volterra timeseries
Y = SimPredPreyFn(Nobs=Nobs, Nt=100, A=0.4, B=0.5, C=0.2, E=1)$Y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.