View source: R/cochran.trans.calc.r
cochran.trans.calc | R Documentation |
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
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
)
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_numCV |
Option to output the number of days in transition for |
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".
A list of Cochran estimates by strata, Discards, Total Discard in the fishery (adjusted by transition rate)
get.cochran.ss.by.strat
cochran.trans.calc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.