missalpha
0.2.0Find Range of Cronbach Alpha with a Dataset Including Missing Data
Overview
Provides functions to calculate the minimum and maximum possible values of Cronbach's alpha when item-level missing data are present. Cronbach's alpha (Cronbach, 1951 doi:10.1007/BF02310555) is one of the most widely used measures of internal consistency in the social, behavioral, and medical sciences (Bland & Altman, 1997 doi:10.1136/bmj.314.7080.572; Tavakol & Dennick, 2011 doi:10.5116/ijme.4dfb.8dfd). However, conventional implementations assume complete data, and listwise deletion is often applied when missingness occurs, which can lead to biased or overly optimistic reliability estimates (Enders, 2003 doi:10.1037/1082-989X.8.3.322). This package implements computational strategies including enumeration, Monte Carlo sampling, and optimization algorithms (e.g., Genetic Algorithm, Differential Evolution, Sequential Least Squares Programming) to obtain sharp lower and upper bounds of Cronbach's alpha under arbitrary missing data patterns. The approach is motivated by Manski's partial identification framework and pessimistic bounding ideas from optimization literature.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 3.0 median / 8 max
- Test cases
- 1 / 0.23 per code line
- Documented parameters
- 100%
Test coverage
Line coverage
82%
Expression
81.2%
Tests / Examples
81.6% / 2% ex
Functions
22 12 exported
Complexity
3.5 avg / 8 max
Call network
22 nodes / 20 edges
Call graph
Open call graph →Lowest coverage
22 functions| Function | Cyclo | Coverage |
|---|---|---|
| cronbach_alpha_enum exp | 8 | 0% |
| summary.CronbachAlphaResult | 7 | 60% |
| cronbachs_alpha exp | 3 | 77% |
| display_all exp | 4 | 79% |
| cronbach_alpha_rough exp | 6 | 84% |
| qp_solver_DEoptim exp | 2 | 87% |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest
- 0.1.02025-09-09
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-09-09
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.1.0
- Bundled data
- 0.7 KB / 2 files
- Download size
- 19 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet