Get Price Bounds by Gear + Taxon
get_price_bounds.RdComputes outlier bounds for catch_price grouped by the interaction of
gear and catch_taxon. By default, it applies logt = TRUE in
LocScaleB and exponentiates the resulting upper bound.
Arguments
- data
A data frame containing
gear,catch_taxon, andcatch_price.- k
A numeric parameter passed to
LocScaleB.
Value
A data frame with columns gear, catch_taxon, and upper.up
representing the exponentiated upper bound. The lower.low column is dropped.
Details
Similar to get_catch_bounds_taxon, but operating on catch_price
rather than catch_kg. Splits the data by gear + taxon, uses
LocScaleB to find outlier bounds, and exponentiates the upper bound.
See also
validate_price for usage in a validation step.
Examples
if (FALSE) { # \dontrun{
price_bounds <- get_price_bounds(data, k = 3)
head(price_bounds)
} # }