Skip to content

wbCorr

0.3.2Package record

Bivariate Within- and Between-Cluster Correlations

0packages depend
973downloads / year
83.4%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.2

Statistical correctness

  • Reimplemented the one-way random-effects, single-measure ICC(1,1) with the ANOVA method-of-moments formula for unequal cluster sizes. Negative sample ICCs are retained, and non-estimable cases now return explicit diagnostics.
  • Corrected Pearson analytic degrees of freedom and Fisher-z confidence intervals. Intervals are bounded by -1 and 1, and inference that is not supported by the available analysis units is reported as unavailable.
  • Clarified that the Spearman option is a descriptive correlation of mean-centered scores within clusters and of cluster means between clusters. Unsupported analytic, row-jackknife, and cluster-size-weighted Spearman inference has been removed; whole-cluster bootstrap intervals remain available.
Show all changes in 0.3.2Hide the rest of the changes in 0.3.2

Inputs, diagnostics, and output

  • Strengthened validation for data, cluster identifiers, method, confidence levels, bootstrap settings, weighting, and centering choices.
  • Logical variables and declared two-level factors are supported with explicit 0/1 orientation. Other categorical inputs are rejected with guidance, and non-finite numeric values are treated as missing.
  • Detailed tables now retain every requested variable pair, including pairs whose coefficient or inference cannot be estimated. Pair-specific observation counts, cluster counts, coefficient status, inference status, reasons, and bootstrap yield diagnostics are reported.
  • Correlation-matrix diagonals are 1 only for variables with positive variance at the relevant level; otherwise they are NA.
  • Added positive-semidefinite diagnostics for the unrounded within- and between-cluster matrices. Pairwise matrices that are not positive semidefinite now trigger a targeted warning, and missing_data = "listwise" provides an optional common-row analysis.
  • get_matrix(..., numeric = TRUE) now returns unrounded numeric within, between, and merged matrices, including unrounded ICC diagonals.
  • print() now provides concise, executable guidance for inspecting summaries and extracting full tables, numeric matrices, and ICCs.
  • Plot panels now use the exact pair-specific rows, centering rule, method, and between-cluster weights used by the fitted object. Annotations come from the stored coefficient and p-value, and significance legends are omitted when p-values were not requested or are unavailable.
  • to_excel() now accepts a data frame or matrix directly, supports mixed lists of tabular objects, errors clearly when there is nothing to write, and invisibly returns the supplied output path.

Development and release preparation

  • Added reference tests against psych::statsBy() for within- and between-cluster correlations and ICC(1,1), and expanded automated regression-test coverage.
  • Added a pkgdown website workflow and a vignette introducing the distinction between within- and between-cluster correlations.
  • Removed obsolete self-generated test fixtures, a generated plot file, and tracked R session history. Added safeguards against including regenerated session or graphics artifacts in the repository and source package.
  • Corrected the bundled-data documentation to report 5,000 observations from 100 participants measured over 50 days.
  • Added repository citation metadata and a DOI badge that use the permanent Zenodo concept DOI, 10.5281/zenodo.20357592, rather than a release-specific DOI.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK8 OK2026-06-10
Advisories

none known

Documentation

In release 0.3.2
READMEYes · 1,234 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.3.2Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
12
Examples that run
100%7 run in a plain check
Exported functions with examples
71%
Documented parameters
95%
Return-value docs
100%
Help pages citing references
17%

Downloads

973
CRAN downloads in the past year
Rank #22,282 · ~3/day · ~81/mo
Daily download trend is not available in this view yet.
16930 days
59890 days
9731 year
Compare downloads with other packages →
Also on25 r2u4 autocran

Repository

1Stars
0Forks
4Open issues
1Open PRs
3Releases
253Commits
1Commit identities
correlationcorrelation-analysiscorrelation-matrixintensive-longitudinal-dataintensive-longitudinal-studiesmultilevel-datamultilevel-modelingr
253 commits · Last activity 2026-08-25 · Default branch at 0.3.2.9000, ahead of CRAN 0.3.2 (checked 2026-10-22)
Responsiveness
How these are sampled
PRs merged (all time)
96%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

Releases over time

2026-07-14 · 22026-08-25 · 3
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/pascal-kueng/wbcorr on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-25 · The repository has a site deploy workflow

pkgdown site last built 2026-08-25

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
CITATION.cff
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing wbCorr adds 1 package (1 with compiled code, 623 KB of source tarballs). Heaviest: writexl 623 KB.

Depends (1)
R >= 3.5.0
Imports (2)
methodswritexl
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.3.1 (2026), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • 0.3.2Latest
    record
    2026-07-23 · current release · diff ↗ ·
    added 1 export
    get_matrix_diagnostics
  • 0.3.1
    record
    2026-06-09
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-06-09
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
111 KB / 1 file
Download size
212 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("wbCorr")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

The repository also keeps a CITATION.cff.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for wbCorr version 0.3.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy