calcout: calcout runs asmreduction across a vector of M values

View source: R/asmreduct.r

calcoutR Documentation

calcout runs asmreduction across a vector of M values

Description

calcout runs asmreduction across an input vector of M values and outputs a lisdt of aspreduction lists.

Usage

calcout(mvalues, inR0, fish, glb, props, limitH = limitH)

Arguments

mvalues

a vector of natural mortality values to replace those inside the global object

inR0

the trial value of log(R0)

fish

a data.frame containing the year and catch in each year

glb

the global variables defined in the data structures for datalowSA

props

the biological properties of the species, including length-, weight-, maturity-, and selectivity-at-age

limitH

a vector of two numbers denoting the lowest and highest values of the maximum harvest rate the stock is assumed to have experienced.

Value

a list of asmreduction lists

Examples

## Not run: 
  data(orhdat1)
  fish <- orhdat1$fish # 19 years of data
  glb <- orhdat1$glb
  props <- orhdat1$props
  inR0 <- seq(12.0,14.2,0.02)
  limitH <- c(0.25,0.5)
  glb$M <- c(0.03,0.32,0.36,0.38,0.04,0.042,0.44)
  glb$steep <- 0.6
  out <- calcout(mvalues,inR0,fish,glb,props,limitH=limitH)
  str(out,max.level=1)

## End(Not run)

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