crolib
Generalizability theory and measurement design for Rust and Python. Named for Lee Cronbach, a founder of generalizability theory.
Initial release (0.1.0): project relative reliability (G) and absolute dependability (Phi) from supplied variance components for an all-random, crossed person × item × rater design. Both implementations have no runtime dependencies. Python is currently a portable implementation, not a Rust binding.
Python
=
=
# 0.5454545454545454
# 0.46601941747572817
Rust
[]
= "0.1"
use CrossedComponents;
let components = CrossedComponents ;
let reliability = components.project.expect;
assert!;
Mathematical scope
For item count I and rater count R:
relative_error = person_item/I + person_rater/R + residual/I/R
absolute_error = relative_error + item/I + rater/R + item_rater/I/R
G = person / (person + relative_error)
Phi = person / (person + absolute_error)
The residual component combines the three-way interaction and observational error in an unreplicated design. Inputs are variances, not standard deviations. Components must be finite and nonnegative; counts must be positive integers. Undefined coefficients produce an error. Negative estimates are rejected rather than silently clipped. Binary scaling avoids overflowing sums and premature underflow of count-weighted components.
Projection assumes the supplied components describe the same population and exchangeable item/rater universes as the proposed design. This release does not estimate components from raw observations, support fixed/nested facets, or calculate uncertainty intervals. General design support, fitting, unbalanced estimation, and multivariate G-theory are planned research and development.
Reference: Brennan, R. L. (2001), Generalizability Theory, Springer, doi:10.1007/978-1-4757-3456-0.
Development
Read AGENTS.md and BLACKBIRD.md. Run scripts/check.sh to check Rust and
Python behavior. Research lives in papers/, decisions in journal/, and the
initial work queue in issues/. Project-specific references and private working
material belong in ignored quarantine/ and context/.
MIT licensed.