View source: R/get.cochran.ss.by.strat.r
get.cochran.ss.by.strat | R Documentation |
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.
get.cochran.ss.by.strat(
bydat,
trips,
targCV = 0.3,
strata_name = "STRATA",
strata_complete = c("dredge", "trawl")
)
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). |
Each data frame input MUST have a stratification column that matches. This may be numeric, logical, factor or character
a list of Cochran ratio estimaes by strata, Discards, Total Discard in the fishery, Total Cv for the fishery, Required Seadays by strata
get.cochran.ss.by.strat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.