
Outlier identification of the price-weight relation
Source:R/validation-functions.R
validate_price_weight.RdFlags submissions whose revenue per kilo of estimated catch falls outside the configured band, and propagates the regularity, revenue and individuals-count alerts onto both the price and the catch frames. Price per kilo (17), regularity (22) and revenue (6) share one alert number per submission; the individuals count (11) is reported on its own, so 6 or 17 no longer hide it.
Usage
validate_price_weight(
catch_params = NULL,
price_alerts = NULL,
non_regular_ids = NULL,
cook_dist = NULL,
price_weight_min = NULL,
price_weight_max = NULL
)Arguments
- catch_params
Output of
validate_catch_params():alerts(one row per submission) andcatch(the long table).- price_alerts
The data frame of price alerts.
- non_regular_ids
The data frame of landings regularity alerts.
- cook_dist
Unused. See above.
- price_weight_min
Min price per weight value threshold.
- price_weight_max
Max price per weight value threshold.