Get Total Catch Bounds by Landing Site and Gear
get_total_catch_bounds.Rd
Computes 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, gear
and sumscatch_kg
intototal_catch_kg
.Splits the results by site-gear combination.
Calls
LocScaleB
on each group, exponentiates theupper.up
bound, 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)
} # }