Skip to contents

This function calculates the bounds for outlier detection using the LocScaleB method.

Usage

get_bounds(x = NULL, k = NULL)

Arguments

x

A numeric vector. The data for which bounds are to be calculated.

k

An optional numeric value. Controls the sensitivity of the outlier detection method.

Value

A numeric vector of bounds for the input data.

Examples

get_bounds(c(1, 2, 3, 4, 5), k = 3)
#> Warning: Please note that log(x+1) transformation is applied
#> No outliers found
#> lower.low  upper.up 
#>  0.106742  2.665847