smartcor: Automatic Correlation Method Selection Based on Variable Types

Detects variable types (continuous, count, binary, ordinal, categorical), checks outliers, normality, latent normality, and linearity, and selects the appropriate correlation method for each pair. Supports 18 methods: Pearson, Spearman, Kendall's tau, point-biserial, biserial, rank-biserial, phi, tetrachoric, Yule's Q, polychoric, polyserial, Goodman-Kruskal's gamma, the correlation ratio (eta-squared), Kruskal-Wallis eta-squared, Freeman's theta, Cramer's V, Tschuprow's T, and Theil's U, each with a confidence interval and p-value. Explains the selection rationale in the output, follows tidy data principles, and works in both interactive and scripted workflows. The methodology is described in Harshvardhan and Ranjan (2026) <doi:10.48550/arXiv.2607.22285>.

Version: 1.2.0
Depends: R (≥ 3.6.0)
Imports: cli (≥ 3.0.0), fNonlinear, generics, ggplot2 (≥ 3.4.0), graphics, grDevices, lmtest, Matrix, moments, MVN (≥ 6.0), mvtnorm, polycor, rlang (≥ 1.0.0), stats, tibble, utils, withr
Suggests: effectsize, knitr, MASS, rmarkdown, rstatix, testthat (≥ 3.0.0)
Published: 2026-10-26
DOI: 10.32614/CRAN.package.smartcor
Author: M. Harshvardhan [aut, cre, cph], Pritam Ranjan [aut, cph]
Maintainer: M. Harshvardhan <harshvardhan at aus.edu>
BugReports: https://github.com/harshvardhaniimi/smartcor/issues
License: GPL (≥ 3)
URL: https://harshvardhaniimi.github.io/smartcor/, https://github.com/harshvardhaniimi/smartcor
NeedsCompilation: no
Citation: smartcor citation info
Materials: README, NEWS
CRAN checks: smartcor results

Documentation:

Reference manual: smartcor.html , smartcor.pdf
Vignettes: Confidence intervals and p-values (source, R code)
Getting Started with smartcor (source, R code)
Choosing the Right Correlation Method: Theory and Rationale (source, R code)

Downloads:

Package source: smartcor_1.2.0.tar.gz
Windows binaries: r-devel: smartcor_1.0.1.zip, r-release: smartcor_1.0.1.zip, r-oldrel: smartcor_1.0.1.zip
macOS binaries: r-release (arm64): smartcor_1.2.0.tgz, r-oldrel (arm64): smartcor_1.2.0.tgz, r-release (x86_64): smartcor_1.2.0.tgz, r-oldrel (x86_64): smartcor_1.2.0.tgz
Old sources: smartcor archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=smartcor to link to this page.