Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smartcor

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.

Install

R (once on CRAN):

install.packages("smartcor")

Python (from PyPI):

pip install pysmartcor

Website

The 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.

Paper

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.

Authors

M. Harshvardhan (maintainer) and Pritam Ranjan.

License

GPL (>= 3)

About

R and Python packages for calculating correlations — correctly, smartly, and automatically

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages