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.
detect_outliers_zscore(df1, df2, threshold = 3)A data frame with columns: dataset, variable, row, value, zscore. Empty data frame if no outliers found.
First data frame (base).
Second data frame (compare).
Numeric z-score threshold (default 3).