Learn R Programming

clinCompare (version 1.0.0)

detect_outliers_zscore: Detect Outliers Using Z-Score Method

Description

Internal function to detect potential outliers in numeric columns of both datasets using the z-score method. Values with |z| > 3 are flagged. Results are returned as advisory notes for the user.

Usage

detect_outliers_zscore(df1, df2, threshold = 3)

Value

A data frame with columns: dataset, variable, row, value, zscore. Empty data frame if no outliers found.

Arguments

df1

First data frame (base).

df2

Second data frame (compare).

threshold

Numeric z-score threshold (default 3).