Description Usage Arguments Value Examples
View source: R/model_functions.R
Simulate environmental stochasticity for surivial, spawning, and
number of eggs using age-specific empirical data. Simulated data are used
by PopProjections
to calculate population trajections (lambda).
1 2 3 4 5 6 7 8 9 10 11 |
data |
Dataframe containing age-specific probabilities for survival, spawning, or number of eggs along with standard deviations (errors) |
prob |
Column name in data containing age-specific probabilities or count. |
std |
Column name in data containing error of probabilities. |
recruitment |
Used only for "survival" option. Value (default = 5) denotes period of successful recruitment. |
minb |
Used only for "numeggs" option. Value passed on to
|
maxb |
Used only for "numeggs" option. Value passed on to
|
iters |
Scalar integer. Number of iterations to perform. Default 10; function will slow with higher (i.e., > 5000) value. |
seed |
Numeric value passed to |
type |
Scalar character as one of three options: "survival"; "spawning"; or "numeggs". Choose one based on desired simulation. Default = "survival". |
A matrix of model simulations (varies depending on argument
supplied to type
). Matrix is of class simulations
.
1 | # code here
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.