Unified Interface for Modern and Classical Correlation Coefficients
Overview
Provides a single unified interface for computing a wide variety of classical and modern correlation and association measures. Continuous methods include classical correlations (Pearson, Spearman, Kendall), modern dependence measures (distance correlation, maximal information coefficient, Hilbert-Schmidt independence criterion, Chatterjee's xi, Hoeffding's D, mutual information), robust correlations (biweight midcorrelation, percentage bend, Winsorized), ordinal correlations (polychoric, tetrachoric), partial and semi-partial correlations, and nonparametric measures (ball correlation, Bergsma-Dassios tau*). Categorical association measures (Cramer's V, phi coefficient, Goodman-Kruskal gamma, Somers' D, contingency coefficient, Tschuprow's T) are available via moderncor_cat().
New Features
- Added robust correlation methods: biweight midcorrelation, percentage bend correlation (
WRS2), and Winsorized correlation (WRS2). - Added ordinal correlation methods: polychoric and tetrachoric correlation (
psych). - Added partial correlation methods: partial correlation and semi-partial correlation (
ppcor), controlled via the newzparameter. - Added nonparametric methods: ball correlation (
Ball) and Bergsma-Dassios tau* (TauStar). - Added
moderncor_cat()for categorical association measures: Cramer's V, phi coefficient, Goodman-Kruskal gamma, Somers' D, contingency coefficient, and Tschuprow's T (all viaDescTools).
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
- Added
available_methods_cat()to list all supported categorical methods.
Changes
- Removed dependency on
WGCNA(Bioconductor). Biweight midcorrelation is now computed using a built-in implementation of the standard formula (Wilcox 2012), eliminating the need forAdditional_repositories. - Version bumped to 0.2.0 to reflect the substantial addition of Phase 2 methods.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-06-25
Documentation
- Help pages
- 40 (27 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 80%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/toshihiroiguchi/moderncor on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-06-08Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 6 crediting it in the message
- Gemini CLIfirst seen 2026-06-08Seen in the repository: GEMINI.mdNamed in .Rbuildignore: GEMINI.md
- Claude Opus 4.84 commits · Jun 2026
- Claude Sonnet 4.62 commits · Jun 2026
Dependencies
Installing moderncor adds 8 packages (4 with compiled code, 8.6 MB of source tarballs). Heaviest: psychTools 3.8 MB, Rcpp 1.8 MB, GPArotation 1.6 MB.
Code & Tests
People & History
- 0.2.0Latest2026-06-24 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-24
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Download size
- 49 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("moderncor")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.