simulate_SPM: simulate_SPM

View source: R/surplus_production_funs.R

simulate_SPMR Documentation

simulate_SPM

Description

simulate a surplus production model, maybe fletchers?

Usage

simulate_SPM(
  theta,
  r,
  m,
  K,
  exploitation,
  obs_cv,
  catchability,
  proc_std,
  proj_years,
  proj_u,
  process_error = NULL
)

Arguments

theta

<real> starting exploited biomass

r

<real> intrinsic growth parameter.

m

<real> Shape parameter for the surplus production function

K

<real> carrying capacity parameter.

exploitation

<vector> Exploitation, defines number of years (length = n_t - 1), so if you have a period of no catches set values of 0

obs_cv

<vector> CV's (for each year) for simulated observations

catchability

<vector> a scalar to generate the relative index observation

proc_std

(optional) time specific time deviations (epsilon_t,p) for each time step

proj_years

int number of projection years

proj_u

vector<proj_years> (length 1 or proj_years)

process_error

<vector> CV's (for each year) for simulated observations

Value

Returns a list of model quantiteis and observations that can be used as an operating model


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.