generate_ss3: Generate frequently used input data for Stock Synthesis 3

View source: R/generate_ss3.R

generate_ss3R Documentation

Generate frequently used input data for Stock Synthesis 3

Description

Generate frequently used input data for Stock Synthesis 3

Usage

generate_ss3(
  file_path,
  r0,
  steepness,
  sigmar,
  projection_f,
  projection_catch = NULL,
  sa_data,
  model_year,
  projection_year,
  use_depletion = FALSE,
  depletion_ratio = NULL
)

Arguments

file_path

A file path to a directory where the assessment input and output files will be saved.

r0

UNexploited recruitment from Beverton-Holt stock-recruitment model.

steepness

Steepness from Beverton-Holt stock-recruitment model. Recruitment relative to unfished recruitment at 20% of unfished spawning biomass.

sigmar

Standard deviation of log recruitment.

projection_f

Fishing mortality inputs for projections.

projection_catch

Catch inputs for projections.

sa_data

Simulated stock assessment input data from Rscript/simulation.R.

model_year

A vector of years for model fitting.

projection_year

A vector of years for projection.

use_depletion

A logical value.

depletion_ratio

Ratio of depletion.

Value

Outputs from Stock Synthesis 3

Examples

## Not run: 
generate_ss3(
  file_path  = here::here("data", "data_rich"),
  r0 = 12, steepness = 0.5, sigmar =0.25,
  projection_f = 0.75, projection_catch = NULL,
  sa_data = sa_data, model_year = 1985:2012,
  projection_year = 2013:2017,
  use_depletion = FALSE, depletion_ratio = NULL
)

## End(Not run)

Bai-Li-NOAA/IFA4EBFM documentation built on June 23, 2022, noon