Learn R Programming

MSEtool (version 1.1.0)

optSR: Wrapper for estimating stock recruitment parameters from resampled stock-recruitment data

Description

Wrapper for estimating stock recruitment parameters from resampled stock-recruitment data

Usage

optSR(x, SSB, rec, SSBpR, pars, frac = 0.5, plot = FALSE, type = c("BH",
  "Ricker"))

Arguments

x

position to accommodate lapply-type functions

SSB

'observations' of spawning biomass

rec

'observations' (model predictions) of recruitment

SSBpR

spawning stock biomass per recruit at unfished conditions

pars

an initial guess at model parameters steepness and R0

frac

the fraction of observations for resampling

plot

should a plot of model fit be produced?

type

what type of stock recruitment curve is being fitted ("BH" = Beverton-Holt or "Ricker")

Value

Estimated value of steepness.