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