Fsim: Fsim() Simulates stochastic stock dynamics under under...

View source: R/SimRefs.R

FsimR Documentation

Fsim() Simulates stochastic stock dynamics under under constant Fbrp

Description

Fsim() Simulates stochastic stock dynamics under under constant Fbrp

Usage

Fsim(
  brp,
  Ftgt = NULL,
  sigmaR = 0.5,
  rho = 0,
  nyears = 100,
  iters = 250,
  yrs.eval = NULL,
  verbose = TRUE
)

Arguments

brp

output object from computeFbrp() of class FLBRP

sigmaR

lognormal recruitment standard deviation

rho

AR1 recruitment autocorrelation coefficient

nyears

number of simulation years

iters

number simulation iterations

yrs.eval

last years to be used evaluation period, default nyears/2

verbose

cat comments

Value

list of FLPar, FLStock and FLBRP objects

Examples

data(ple4)
hs = srrTMB(as.FLSR(ple4,model=segreg),spr0=spr0y(ple4),lplim=0.05,uplim=0.25)
blim = params(hs)[[2]]
brp = computeFbrp(ple4,hs,proxy=c("sprx","f0.1","msy"),x=40,blim=blim)
ploteq(brp)
fsim = Fsim(brp,sigmaR=0.7,rho=0.3)
plotFsim(fsim)
plotFsim(fsim,panels=2)

Henning-Winker/FLRef documentation built on July 14, 2024, 7:28 a.m.