- Added
tgs_chi2(): vectorized chi-squared test for 2x2 contingency tables with optional Yates' continuity correction. Supports both dense and sparse (dgCMatrix) matrix input. Useful for differential gene expression analysis. C++ backend with fork-based parallelization for large matrices anderfc(sqrt(x/2))optimization for p-value computation.