This function calculates the left threshold for MAD-based filtering.
Usage
get_mad_left_threshold(x, tolerance)
Arguments
- x
Vector of values used for filtering.
- tolerance
Tolerance value for MAD-based filtering.
Value
The left threshold value.
Examples
# Calculate the left threshold for MAD-based filtering with tolerance 3
get_mad_left_threshold(c(100, 200, 300), 3)
#> [1] -100
# Calculate the left threshold for MAD-based filtering with tolerance 2
get_mad_left_threshold(c(50, 75, 100), 2)
#> [1] 25