wbCorr: Bivariate Within- and Between-Cluster Correlations

Separates supplied variables into within- and between-cluster components and calculates bivariate correlations for each level separately. For Pearson correlations, the centered-score decomposition corresponds to commonly used between- and within-cluster correlations reviewed by Tu et al. (2025) <doi:10.1002/sim.10326>. The package's descriptive Spearman option is distinct from the clustered rank parameters introduced in that paper. The package is also motivated by the distinction between within- and between-person variation described by Curran and Bauer (2011) <doi:10.1146/annurev.psych.093008.100356> and by Hamaker (2024) <doi:10.1080/00273171.2022.2155930>. The package is intended for longitudinal or otherwise clustered data where researchers need transparent correlation matrices before fitting more complex multilevel models.

Version: 0.3.2
Depends: R (≥ 3.5.0)
Imports: methods, writexl
Suggests: httr, knitr, psych, rmarkdown, spelling, testthat (≥ 3.0.0)
Published: 2026-07-23
DOI: 10.32614/CRAN.package.wbCorr
Author: Pascal Küng ORCID iD [aut, cre, cph]
Maintainer: Pascal Küng <pascal.kueng at psychologie.uzh.ch>
BugReports: https://github.com/Pascal-Kueng/wbCorr/issues
License: MIT + file LICENSE
URL: https://pascal-kueng.github.io/wbCorr/, https://github.com/Pascal-Kueng/wbCorr
NeedsCompilation: no
Language: en-US
Citation: wbCorr citation info
Materials: README, NEWS
CRAN checks: wbCorr results

Documentation:

Reference manual: wbCorr.html , wbCorr.pdf
Vignettes: Within- and between-cluster correlations (source, R code)

Downloads:

Package source: wbCorr_0.3.2.tar.gz
Windows binaries: r-devel: wbCorr_0.3.1.zip, r-release: wbCorr_0.3.1.zip, r-oldrel: wbCorr_0.3.1.zip
macOS binaries: r-release (arm64): wbCorr_0.3.1.tgz, r-oldrel (arm64): wbCorr_0.3.1.tgz, r-release (x86_64): wbCorr_0.3.1.tgz, r-oldrel (x86_64): wbCorr_0.3.1.tgz
Old sources: wbCorr archive

Linking:

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