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 so that a single alert number per submission survives the assembly.
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.