calcIndexError: Calculate errors of ISBM and CYER

Description Usage Arguments Value Examples

Description

Calculate errors of ISBM and CYER

Usage

1
2
3
calcIndexError(dat, postseason = 0:3, minyear = 2000, maxyear = 2013,
  estimationyear = 2016, pm = c("mpe", "mape"), standardize = FALSE,
  ...)

Arguments

dat

A data frame. Typically the output from calcCYER or combinePTdata.

postseason

An integer vector. Defines what postseason periods to evaluate. Default is 0:3, which equates to postseason years 1:4.

minyear

An integer of length one. The initial year in the time series for evaluation.

maxyear

An integer of length one. The final year in the time series for evaluation.

estimationyear

An integer of length one. The final year in the time series.

pm

A character vector. Names of the performance measures to calculate. Default tests are mpe and mape. Look to PBSperformance::PMs for details.

Value

A list of two data frames. One data frame holds the annual error estimates, the other data frame has the performance measure statistic.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
mort.list <- readMortalityDist("QUI2000_2-6_CMZ.csv")
mort.df <- mort.list$data.mort.long
mort.df$year <- mort.df$CatchYear
fishery.map <- buildCMZfishery(mort.df = mort.df)
dat.cyer <- calcCYER(mort.df = mort.df, fishery.map=fishery.map)
dat.cyer$index <- dat.cyer$mortality.percent/100
results.cyer <- calcIndexError(dat = dat.cyer)

## End(Not run)

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