Learn R Programming

MQMF (version 0.1.1)

bh: bh represents one version of Beverton-Holt recruitment

Description

bh implements the Beverton-Holt stock recruitment equation R = aB/(b + B), where R is the recruitment, a and b are the parameters and B is the spawning biomass. a is the maximum recruitment level and b is the biomass required to generate 0.5 x maximum recruitment

Usage

bh(p, B)

Arguments

p

a vector of the a and b parameters

B

a vector, possibly of length 1, of spawning biomass levels

Value

a vector, the same length as B, of the predicted recruitment(s)

Examples

Run this code
# NOT RUN {
  B <- 1:3000
  rec <- bh(c(1000,200),B)
  plot1(B,rec,xlab="SpB",ylab="Recruitment",lwd=2)
# }

Run the code above in your browser using DataLab