Detect outliers in the data
tl_detect_outliers(
data,
variables = NULL,
method = "iqr",
threshold = NULL,
plot = TRUE
)A list with outlier detection results
A data frame containing the data
Character vector of variables to check for outliers
Method for outlier detection: "boxplot", "z-score", "cook", "iqr", "mahalanobis"
Threshold for outlier detection
Logical; whether to create a plot of outliers