cochran.trans.calc: Estimate the in-season cumulative discard with a transition...

View source: R/cochran.trans.calc.r

cochran.trans.calcR Documentation

Estimate the in-season cumulative discard with a transition rate

Description

Apply transition rate to adjust in-season discard rate estimates and calculate the cumulative discard for a set of trips and observed trips, according to a strata definition

Usage

cochran.trans.calc(
  bydat_focal,
  trips_focal,
  bydat_prev,
  trips_prev,
  strata_name = "STRATA",
  strata_complete = NULL,
  time_span = c(1, 365),
  time_inter = 1,
  CV_target = 0.3,
  trans_method = c("ntrips", "ntripsCV", "moving", "none")[1],
  trans_num = 5,
  trans_numCV = FALSE
)

Arguments

bydat_focal

Observed trips for focal year (t)

trips_focal

Trips from DMIS for focal year (t)

bydat_prev

Observed trips for previous year (t-1)

trips_prev

Trips from DMIS for previous year (t-1)

strata_name

Name of the stratification column (default = "STRATA")

strata_complete

Vector of complete names for all strata of interest

time_span

Start and end days of the fishing season

time_inter

The length of the time interval for cumulative calculation (default = 1 day)

trans_method

Method for incorporating the transition rate, either using a minimum number of trips specified [default] or determined by previous year's CV, a moving window, or no transition.

trans_num

Number used by the trans_method for determining transition, either number of trips (trans_method='ntrips')

trans_numCV

Option to output the number of days in transition for

Details

Each data frame input MUST have matching stratification columns. This variable may be numeric, logical, factor or character. The cumulative rate can be calculated without any transition rate by using method = "none".

Value

A list of Cochran estimates by strata, Discards, Total Discard in the fishery (adjusted by transition rate)

See Also

get.cochran.ss.by.strat

Examples

cochran.trans.calc

noaa-garfo/discaRd documentation built on April 17, 2025, 10:32 p.m.