Get Total Catch Bounds by Landing Site and Gear
get_total_catch_bounds.RdComputes outlier bounds for total catch (total_catch_kg) grouped by the
combination of landing_site and gear. Internally, it first aggregates
catch_kg to get a single total_catch_kg per submission, then applies
LocScaleB (with a log transform) within each site-gear group.
Arguments
- data
A data frame containing
submission_id,landing_site,gear, andcatch_kg.- k
A numeric parameter passed to
LocScaleB.
Details
Groups by
submission_id, landing_site, gearand sumscatch_kgintototal_catch_kg.Splits the results by site-gear combination.
Calls
LocScaleBon each group, exponentiates theupper.upbound, then returns a data frame withlanding_site,gear, andupper.up.
See also
validate_total_catch for usage of these bounds in validation.
Examples
if (FALSE) { # \dontrun{
total_bounds <- get_total_catch_bounds(data, k = 3)
head(total_bounds)
} # }