detect_outliers_zscore: Detect Outliers Using Z-Score Method

View source: R/cdisc_validate.R

detect_outliers_zscoreR Documentation

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)

Arguments

df1

First data frame (base).

df2

Second data frame (compare).

threshold

Numeric z-score threshold (default 3).

Value

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


clinCompare documentation built on Feb. 19, 2026, 1:07 a.m.