gadget.ypr: Gadget Yield per Recruit

Description Usage Arguments Details Value Author(s) Examples

View source: R/gadgetfunctions.R

Description

Calculate yield per recruit of a stock in a Gadget model

Usage

1
2
3
4
5
6
7
8
gadget.ypr(params.file = "params.in", main.file = "main", effort = seq(0,
  1, by = 0.01), begin = 1990, end = 2020, age.range = NULL,
  fleets = data.frame(fleet = "comm", ratio = 1), ssb.stock = NULL,
  mat.par = NULL, check.previous = FALSE, save.results = TRUE,
  gd = list(dir = ".", rel.dir = "YPR"))

## S3 method for class 'gadget.ypr'
plot(ypr)

Arguments

params.file

Parameter file for the gagdet model

main.file

Main file for the gagdet model

effort

The range of fishing mortality

begin

Start year of the simulation

end

End year of the simulation

age.range

at what age range should the YPR be calculated

fleets

Data frame comtaining the fleet names and ratio in future catches

check.previous

check if the analysis have been done before

save.results

should the results be saved?

gd

gadget directory object

Details

gadget.ypr returns the results from a yield per recruit simulation. The function sets up a new Gadget run based on a given model and parameter settings where the initial conditions and recruiment parameters are all set to zero appart from one year class which is set to a nominal value (10000 individuals). The model is the run with a range of fishing effort settings. The fishing effort is formulated in relation to linearfleets whose selection is the same as the one in the fleets in the model. The user can specify what fleets will be used in in the yield per recruit simulation.

Value

a list containing the yield per recruit by F, estimate of Fmax and F0.1

Author(s)

Bjarki Thor Elvarsson

Examples

1
2
3
4
5
6
## Not run: 
ypr <- gadget.ypr(ssb.stock = 'codmat',
                  params.file = 'WGTS/params.final')
plot(ypr)

## End(Not run)

bthe/rgadget documentation built on April 22, 2018, 2:34 a.m.