Package: smartcor 1.0.1
smartcor: Automatic Correlation Method Selection Based on Variable Types
Detects variable types (continuous, count, binary, ordinal, categorical) and selects the appropriate correlation method for each pair. Supports Pearson, Spearman, Kendall's tau, point-biserial, rank-biserial, phi, tetrachoric, polychoric, polyserial, Cramer's V, Tschuprow's T, Theil's U, Yule's Q, and Goodman-Kruskal's gamma, 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>.
Authors:
smartcor_1.0.1.tar.gz
smartcor_1.0.1.zip(r-4.7-any)smartcor_1.0.1.zip(r-4.6-any)smartcor_1.0.1.zip(r-4.5-any)
smartcor_1.0.1.tgz(r-4.6-any)smartcor_1.0.1.tgz(r-4.5-any)
smartcor_1.0.1.tar.gz(r-4.7-any)smartcor_1.0.1.tar.gz(r-4.6-any)
smartcor_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
smartcor/json (API)
| # Install 'smartcor' in R: |
| install.packages('smartcor', repos = c('https://harshvardhaniimi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/harshvardhaniimi/smartcor/issues
Pkgdown/docs site:https://harshvardhaniimi.github.io
Last updated from:fd401729cf. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 231 | ||
| source / vignettes | OK | 206 | ||
| linux-release | OK | 225 | ||
| macos-release | OK | 239 | ||
| macos-oldrel | OK | 173 | ||
| windows-devel | OK | 188 | ||
| windows-release | OK | 208 | ||
| windows-oldrel | OK | 179 | ||
| wasm-release | OK | 99 |
Exports:available_methodscompare_methodsdetect_typeggcor_heatmapggcor_method_heatmapplot_cor_heatmapsmart_corsmart_cor_dfsmart_cormattest_bivariate_normalitytidy
Dependencies:admiscclicpp11farvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixmvtnormpillarpkgconfigpolycorR6RColorBrewerrlangS7scalestibbleutf8vctrsviridisLitewithr
Last update: 2026-08-17
Started: 2026-07-24
Last update: 2026-08-04
Started: 2026-07-24
Last update: 2026-07-24
Started: 2026-07-24
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Which Methods Apply to a Pair of Variable Types | available_methods |
| Run Every Applicable Method on One Pair | compare_methods |
| Detect the Statistical Type of a Variable | detect_type |
| ggplot2 Heatmaps for Smart Correlation Matrices | ggcor ggcor_heatmap ggcor_method_heatmap |
| Plot a Correlation Heatmap | plot.smartcormat plot_cor_heatmap |
| Print a smartcor Object | print.smartcor |
| Print a smartcormat Object | print.smartcormat |
| Choose and Compute a Correlation | smart_cor |
| Correlation Matrix as Plain Data Frames | smart_cor_df |
| Build a Mixed-Type Correlation Matrix | smart_cormat |
| Test Bivariate Normality for Two Ordinal Variables | test_bivariate_normality |
| Tidy a smartcor Object | tidy.smartcor |
| Tidy a smartcor Comparison | tidy.smartcor_comparison |
| Tidy a smartcormat Object | tidy.smartcormat |
