ritest
python
stats
OSS
Randomization inference in Python.
ritest provides fast randomization inference (RI) tools for linear models and arbitrary statistics. It supports weights (WLS) as well as stratified and clustered designs.
Features
- Linear-model RI with efficient computation.
- Generic RI for arbitrary scalar statistics via
stat_fn. - Stratified, clustered, and stratified-clustered designs.
- Weighted least squares (WLS) support.
- Deterministic seeding, reproducible permutations.
- Configurable \(p\)-value and ultra-fast coefficient bounds and bands.
Citation
Tabaré Capitán (2025). ritest: Randomization inference in Python.
https://github.com/tabareCapitan/ritest
Disclaimer
Use this software at your own risk. I make no guarantees of correctness or fitness for any purpose. I use it in my own work, but you should review the code to ensure it meets your needs. If you find an issue, please report it.