
Calculate Wald-Wolfowitz Runs Test on Pooled Distributions
Source:R/01_metrics_distribution.R
calc_runs_test.RdIntegrated from countsimQC (Soneson & Robinson). Tests whether values from the two datasets intermingle randomly when sorted. A significant left-sided result indicates that identical values cluster together into fewer runs than expected by chance, signaling distinct distributions.
Usage
calc_runs_test(ref, sim, alternative = c("left.sided", "two.sided"))