Learn R Programming

IPMpack (version 1.6)

generateDataStoch: Generates data with stochastic covariates.

Description

Simulates growth, survival, fecundity to create a dataframe of the form required by the functions and methods used in IPMpack.

Usage

generateDataStoch()

Arguments

Value

  • A dataframe with headings: - "size": continuous variable, indicating current size. - "sizeNext": continuous variable, indicating size in the next time step. - "surv": boolean, indicating whether individual survived or not to the next time step. - "covariate1", "covariate2", "covariate3", ...: discrete or continuous covariates. - "fec": continuous variable, indicating fecundity, that is, per-capita contributions via sexual reproduction.

References

Caswell. 2001. Matrix population models: construction, analysis, and interpretation. 2nd ed. Sinauer. p377-502.

Rees & Ellner. 2009. Integral projection models for populations in temporally varying environments. The American Naturalist 79, p575-594.

See Also

generateData,generateDataDiscrete

Examples

Run this code
dff <- generateDataStoch()
head(dff)

Run the code above in your browser using DataLab