Validate Catch Data and Detect Outliers
validate_catch.Rd
This function processes catch data to identify outliers in the number of
elements and weight of the catch.
It utilizes the LocScaleB method with the MAD method for outlier detection,
where k
determines the bounds extension.
The function selects and transforms relevant data, groups it, and applies
outlier detection based on the specified k_max_nb
and k_max_weight
thresholds.
Arguments
- data
A data frame containing catch information, including columns
_id
,gear_type
, andcatch
.- k_max_nb
Nonnegative constant used in the MAD method for determining bounds in outlier detection for the number of elements. Common values are 2, 2.5, and 3.
- k_max_weight
Nonnegative constant used in the MAD method for determining bounds in outlier detection for the weight. Common values are 2, 2.5, and 3.