Automatic correlation method selection for mixed variable types, maintained at feature parity in two languages:
packages/smartcor/— the R package (CRAN-ready; includes the package website and all vignettes).packages/pysmartcor/— the Python package (on PyPI).
Both implementations detect variable types (continuous, count, binary, ordinal, categorical), select an appropriate correlation or association method for each pair, and return the estimate with its confidence interval, p-value, selection rationale, and alternatives.
R (once on CRAN):
install.packages("smartcor")Python (from PyPI):
pip install pysmartcorThe package website (built with pkgdown from the R package, covering both languages) lives in docs/.
It includes getting-started and theory vignettes, full function reference, and an R-to-Python translation guide.
The accompanying paper, smartcor: Intelligent Correlation Method Selection for Mixed Variable Types by M. Harshvardhan and Pritam Ranjan (2026), is available as an arXiv preprint: arXiv:2607.22285 (doi:10.48550/arXiv.2607.22285). The vignettes of the R package and the articles on the website cover the same material.
M. Harshvardhan (maintainer) and Pritam Ranjan.
GPL (>= 3)