Description Usage Arguments Details Value Note Author(s) References See Also Examples

Functions used as part of argument model to call simulation functions.

1 2 3 | ```
two.stage.cont(t,p,x)
two.stage.cont.delay(t,p,x)
two.stage.x0(p,X0)
``` |

`t` |
time |

`p` |
parameters, an array |

`x` |
state variable |

`X0` |
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.

Simulation functions `sim.comp`

, `sim.rnum`

, `sim.mruns`

, `sim`

, `simd`

Methods `euler`

, `RK4`

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.