doproject: doproject after running the cMSY analysis the plausible...

View source: R/cMSY_funs.R

doprojectR Documentation

doproject after running the cMSY analysis the plausible trajectories

Description

after running the run_cMSY analysis this function projects each of the accepted biomass trajectories

Usage

doproject(intraj, constC, projn = 5, sigpR = 0.025)

Arguments

intraj

the successful biomass trajectories obtained from gettraject

constC

the constant catch that is to be applied as a projection

projn

the number of years to be projected.

sigpR

the process error, the same as used in run_cMSY

Value

the same biomass trajecotry matrix as input excpet the empty years will have been filled with projections of the surplus production dynamics made under the constant catch level.

Examples

## Not run: 
data(invert)
fish <- invert$fish
glb <- invert$glb
reps <- 5000  # one would run at least 20000, preferably more
answer <- run_cMSY(fish,glb,n=reps,sigpR=0.04)
traject <- gettraject(answer$R1,projn=5)
newtraj <- doproject(traject,constC=100)
head(newtraj)
trajdepl <- makedeplet(newtraj)
plotconstC(trajdepl,endyear=2017,constC=100,target=0.40)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.