get.cochran.ss.by.strat: Estimate discard rates (and other attributes) by strata

View source: R/get.cochran.ss.by.strat.r

get.cochran.ss.by.stratR Documentation

Estimate discard rates (and other attributes) by strata

Description

For each stratum, returns the Cochran ratio estimate of discard rate along with its CV and sample size requirement for a given target CV. Also returns other stratum-specific attributes including N, K, n, and k for a set of total trips and observed trips.

Usage

get.cochran.ss.by.strat(
  bydat,
  trips,
  targCV = 0.3,
  strata_name = "STRATA",
  strata_complete = c("dredge", "trawl")
)

Arguments

bydat

Observed trips

trips

Total trips (e.g., DMIS data from GARFO)

targCV

Target CV for sample size determination (default = 0.3)

strata_name

The name of the strata column (defaul = 'STRATA').

strata_complete

NOT OPTIONAL! A vector of all unique strata :) desired from the output (including unobserved).

Details

Each data frame input MUST have a stratification column that matches. This may be numeric, logical, factor or character

Value

a list of Cochran ratio estimaes by strata, Discards, Total Discard in the fishery, Total Cv for the fishery, Required Seadays by strata

Examples

get.cochran.ss.by.strat

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