Description Usage Arguments Value Author(s)
View source: R/generate_data.R
generate_data
Generates data from the operating model for use in simulation testing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | generate_data(
modpath,
itervec,
Fdynamics,
Rdynamics,
lh,
pool = TRUE,
Nyears,
Nyears_comp,
comp_sample,
rewrite = TRUE,
init_depl,
derive_quants = FALSE,
seed,
mgt_type = "F",
fleet_proportions = 1,
nareas = 1
)
|
modpath |
directory to save generated data |
itervec |
number of iterations of data to generate |
Fdynamics |
Specify name of pattern of fishing mortality dynamics, Constant, Endogenous, Ramp, Increasing, or None. Input number to project forward using a specific F. |
Rdynamics |
Specify name of pattern of recruitment dynamics, Constant, Pulsed, Pulsed_up, or BH |
lh |
list of life history information to feed to population simulation function, output from create_lh_list |
pool |
if nseasons (in life history list) is greater than one, pool the generated data into annual time steps, or leave at the season-level? default=TRUE, FALSE will generate shorter time step life history info, mean length |
Nyears |
number of years to simulate |
Nyears_comp |
number of years to generate length composition data |
comp_sample |
sample size of length composition data each year |
rewrite |
TRUE will re-run OM and observation model. FALSE will skip if it's already written in directory. |
init_depl |
default=NULL, can specify a starting depletion, initial F (using init_F), or 2 values that indicate range from which to choose them |
init_F |
default=NULL, can specify a starting F, an initial depletion (using init_depl), or 2 vaues that indicate range from which to choose them |
derive_quants |
default=FALSE (takes longer to run), can set to TRUE to output additional derived quantities. |
seed |
single seed or vector of seeds for each iteration |
mgt_type |
removals based on F (default) or catch |
fleet_proportions |
vector specifying the relative size of each fleet in terms of fishing pressure. must have length = nfleets and sum to 1. |
nareas |
number of areas, default = 1, if greater than 1, must be equal to the number of fleets |
print how many iterations were written into the model directory
M.B. Rudd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.