This function calculates the upper and lower bounds for catch price data based on catch taxon,
using the LocScaleB function for outlier detection.
Usage
get_pricekg_bounds(data = NULL, k = NULL)
Arguments
- data
A data frame containing columns: catch_taxon, catch_price_type, and price_kg.
- k
A numeric value used in the LocScaleB function for outlier detection.
Value
A data frame with columns: catch_taxon, lower.low (lower bound), and upper.up (upper bound).
Details
The function filters out rows where catch_taxon is "0" or "no_catch". It then splits the data
based on catch_taxon and applies the get_bounds() function to each group's price_kg values.
The resulting bounds are then combined and transformed back from log scale.