View source: R/FUNCTION_testDetRickerBM.R
testDetRickerBM | R Documentation |
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.
testDetRickerBM(
sr_obj,
sr.scale = 10^6,
min.obs = 15,
type = "jack",
trace = FALSE
)
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 |
ricker.test <- testDetRickerBM(SR_Sample[SR_Sample$Stock == "Stock1",],min.obs = 10, type="retro")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.