mac_srest_cat: Write srest.dat to disk

Description Usage Arguments Value Author(s)

Description

The function is used to write srest.dat to the disk. That file is an input to the srest-model coded in ADMB by Jose Olivera.

Usage

1
mac_srest_cat(name_stock, y1, y2, aR, aP, opt_sr_model, opt_pen, r, ssb, year)

Arguments

name_stock

Name of the stock. May later down the line be used in table and plot outputs

y1

First year of ssb and recruitment data

y2

Last year of ssb and recruitment data

aR

Recruitment age

aP

Plus group age

opt_sr_model

Recruitment model number (1: Ricker, 2: Beverton-Holt, 3: Segmented regression).

opt_pen

0=no SR constraints, 1=apply SR constrain (IS THIS ONLY FOR THE SEGMENTED REGRESSION??).

r

A vector containing recruitment

ssb

A vector containing spawning stock biomass

year

A vector containg years (just used in comments)

Value

A file named srest.dat in the current working directory

Author(s)

Einar Hjorleifsson


einarhjorleifsson/mac documentation built on May 16, 2019, 1:29 a.m.