minimizeDistribution: Minimization to estimate distribution parameter

Description Usage Arguments Examples

Description

Minimization to estimate distribution parameter

Usage

1
2
3
4
minimizeDistribution(data.type = c("AEQCat", "AEQTot"),
  region = c("wcvi", "nbc", "seak"), hrj.df = NA, hrj.filename = NA,
  data.catch, data.stock, fishery.subset = NULL, stock.subset = NULL,
  adjustAlaska.bol = TRUE)

Arguments

adjustAlaska.bol

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
data.type <- "AEQTot" # "AEQCat" # or "AEQTot"
region <- "seak" # "wcvi" # "nbc" #  "seak"
#only one aabm in a data folder:
data.catch <- readCatchData("wcvi7914.cat", strLocation = region)
data.stock <- readStockData( "STOCFILE.STF") load("hrj_from_mdb.RData")
#data.hrj is available from the load() above:
hrj.df <- data.hrj$hrj.list.long$HRJ_BY
#all data sets include data prior to 1979.
#These values are excluded in the VB.
year.range <- 1979:(data.stock$stockmeta$intLastBrood$value+1)
hrj.df <- hrj.df[hrj.df$return.year %in% year.range,]
minimizeDistribution(data.type = data.type, region = region, hrj.df = hrj.df,
data.catch = data.catch, data.stock = data.stock)

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.