calcout | R Documentation |
calcout runs asmreduction across an input vector of M values and outputs a lisdt of aspreduction lists.
calcout(mvalues, inR0, fish, glb, props, limitH = limitH)
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. |
a list of asmreduction lists
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.