F_calc | R Documentation |
Calculations of stock dependent quantities over a range of fishing mortalities (F). This code calculates spawning potential ratio (SPR), and then maximum sustainable yield (MSY) using equilibrium methods incorporating a stock-recruit relationship. Many of the calculations, particularly the MSY calculations, are based on code written by Kyle Shertzer in a very similar function.
F_calc(
ac,
h = NULL,
R0 = NULL,
sigma = 0,
M,
Fmax = 1,
F_n = 101,
sel,
PS,
W,
ep,
Px = 0.4,
plots = FALSE,
plus_group = TRUE,
plot_digits = 3
)
ac |
age classes. numeric vector |
h |
Beverton-Holt steepness parameter |
R0 |
Beverton-Holt R0 parameter. Numbers of fish at age-a (often age-0 or age-1). |
sigma |
lognormal bias correction – exp(sigma^2/2) |
M |
Natural mortality rate |
Fmax |
Maximum fishing mortality rate |
F_n |
Number of fishing mortality rates to try |
sel |
Selectivity at age |
PS |
Proportion of fish to include in stock calculation, at age (e.g. mature females at age) |
W |
weight at age |
ep |
egg production proxy at age (e.g. weight, fecundity) |
Px |
reference proportion of unfished spawning potential ratio (e.g. Px=.40) |
plot_digits |
number of significant digits to show in plot |
Kyle Shertzer and Nikolai Klibansky
rdat <- rdat_VermilionSnapper
pr <- rdat$parms
as <- rdat$a.series
F_calc(ac=as$age, h=pr$BH.steep, R0=pr$R0, M=as$M, sel=rdat$sel.age$sel.v.wgted.tot,
PS=as$mat.female, W=as$weight, ep=as$wgt.klb,
plots=TRUE)
# When there is no SRR, the function will still compute SPR without computing MSY-based equibrium values
rdat <- rdat_RedSnapper
pr <- rdat$parms
as <- rdat$a.series
F_calc(ac=as$age, M=as$M, sel=rdat$sel.age$sel.v.wgted.tot,
PS=as$mat.female, W=as$weight, ep=as$wgt.klb,
plots=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.