Functions to define structured population models for simulation
Functions used as part of argument model to call simulation functions.
1 2 3
parameters, an array
initial condition for class with delay
State variable is population density.
Rate of change or derivative of model. Except two.stage.x0 that returns distributed initial condition by allocation.
Model functions are employed mainly to define the ODE to be simulated by sim, simd, simt and other simulation functions.
Nominal parameter values are defined in input files. Variation of param values are defined in lists.
Input files are in 'datafiles.zip' in directory 'datafiles' and organized by chapters of Acevedo (2012). Input files are required to run the examples below.
Miguel F. Acevedo Acevedo@unt.edu
Acevedo M.F. 2012. Simulation of Ecological and Environmental Models. CRC Press.
Lewis, E.R., 1977. Network Models in Population Biology. New York: Springer Verlag.
McDonald, N. 1978. Time Lags in Biological Models. New York: Springer Verlag.
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: two.stage <-list(f=two.stage.cont) param <- list(plab="b", pval = c(0.15,0.25,0.3,0.31)) t.X <- simt(two.stage,"chp10/two-stage-inp.csv", param,pdfout=TRUE) two.stage.delay <-list(f=two.stage.cont.delay,x0=two.stage.x0) param <- list(plab="nd", pval = c(2,5,6,7)) t.X <- simt(two.stage.delay,"chp10/two-stage-delay-inp.csv", param,pdfout=TRUE) ## End(Not run)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.