R Package dplyr's ntile() Function Flagged as Unsuitable for Regulatory Statistical Analysis
A technical commentary warns analysts against using the 'ntile()' function from R's dplyr package when preparing statistical analyses meant for regulatory submission. The author explains that ntile() originated as a SQL utility and behaves in ways that do not align with standard statistical quantile calculations, potentially producing misleading results.