feat: add exp_cronbach_alpha reliability analysis (#14309)#1543
Open
hidekoji wants to merge 6 commits into
Open
feat: add exp_cronbach_alpha reliability analysis (#14309)#1543hidekoji wants to merge 6 commits into
hidekoji wants to merge 6 commits into
Conversation
New exp_cronbach_alpha() computes a Cronbach's Alpha reliability report (Pearson / Polychoric / Mixed correlation via psych) and exposes report sections through tidy(type=)/glance(). Powers the new Cronbach's Alpha Analytics type in the desktop app. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…h_alpha (#14309) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
hidekoji
commented
Jul 19, 2026
kei51e
approved these changes
Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
exp_cronbach_alpha()— Cronbach's Alpha / reliability analysis — powering the new Cronbach's Alpha Analytics type in the desktop app (tam PR to follow).Supports Pearson (Cronbach's Alpha), Polychoric (Ordinal Alpha), and Mixed Correlation (Mixed-Correlation Alpha), with an
autoselector that picks the method from the item types. Reusespsych(already an Imports dep — no new dependency).Contract
exp_cronbach_alpha(df, ..., correlation_method = "auto", check_keys = FALSE, smooth = TRUE, correct = 0.5, max_nrow = NULL, seed = 1)— returns amodel_df(classcronbach_alpha_exploratory), one model per group.glance(model)— overall alpha, standardized alpha, CI, G6, counts, average inter-item correlation, correlation type, interpretation.tidy(model, type = ...)—summary/alpha_if_dropped/item_stats/correlation/response_distribution/scale_candidates/data.Testing
tests/testthat/test_reliability.Rcovers the Pearson, all-ordinal, mixed, reverse-key, and edge-case contracts:psych::alpha'sraw_alphaexactly; every section shape verified.raw.rhidden.raw.rare hidden by specification.group_by.Notes
NAMESPACEupdated with the 3 new exports (exp_cronbach_alpha,tidy/glanceS3 methods).devtools::document()mis-parses in this local env due to an unrelatedfind_dataload error, so the entries were inserted by hand exactly as document() would emit them — please regenerate in CI if preferred.DESCRIPTIONversion bumped 16.0.5 → 16.0.6. The bundled binary must be rebuilt + the tamrequiredRPackagesReduced.jsonbumped before the desktop feature works end-to-end.🤖 Generated with Claude Code
Specification alignment follow-up
raw.r.raw.routput column.check.keysis applied consistently to matrix statistics, item statistics, and alpha-if-dropped results.devtools/exploratorydependency stack.