find_outliers {qtkit}R Documentation

Detect Statistical Outliers Using IQR Method

Description

Identifies statistical outliers in a numeric variable using the Interquartile Range (IQR) method. Provides detailed diagnostics about the outlier detection process.

Usage

find_outliers(data, variable_name, verbose = TRUE)

Arguments

data

Data frame containing the variable to analyze.

variable_name

Unquoted name of the numeric variable to check for outliers.

verbose

Logical. If TRUE, prints diagnostic information about quartiles, fences, and number of outliers found. Default is TRUE.

Details

The function uses the standard IQR method for outlier detection:

Value

If outliers are found:

If no outliers:

Diagnostic Output

Examples

data(mtcars)
find_outliers(mtcars, mpg)
find_outliers(mtcars, wt, verbose = FALSE)


[Package qtkit version 1.1.1 Index]