testDetRickerBM: testDetRickerBM

View source: R/FUNCTION_testDetRickerBM.R

testDetRickerBMR Documentation

testDetRickerBM

Description

This function calculates standard biological benchmarks (Smsy, Seq, Smax, Umsy) for different subsets of the input data, using the functions calcDetModelFit() and calcDetRickerBM(). See calculation details there.

Usage

testDetRickerBM(
  sr_obj,
  sr.scale = 10^6,
  min.obs = 15,
  type = "jack",
  trace = FALSE
)

Arguments

sr_obj

a data frame with Year and Spn, logRpS (Data for 1 Stock!). Other variables can be there but are not used (RpS, Qual, ExpF etc).

min.obs

min number of S-R pairs needed to fit a model

type

one of "jack" (for a drop 1 jackknife test), "retro" (retrospective test starting with min.obs, then adding more years), or "revretro" (reverse retrospective, starting with all years and them dropping the earlier obs one at a time until only the most recent min.obs are left).

trace

if TRUE, print various intermediate diagnostic output to the console

Examples

ricker.test <- testDetRickerBM(SR_Sample[SR_Sample$Stock == "Stock1",],min.obs = 10,  type="retro")

SOLV-Code/RapidRicker documentation built on Jan. 14, 2025, 9:36 a.m.