ritest

python
stats
OSS
Randomization inference in Python.

PyPI version Python versions CI License: MIT


ritest provides fast randomization inference (RI) tools for linear models and arbitrary statistics. It supports weights as well as stratified and clustered designs. Reports coefficient confidence interval by default.

Features

  • Linear-model RI with efficient computation.
  • Generic RI for arbitrary scalar statistics via stat_fn.
  • Ultra-fast coefficient bounds and bands.
  • Stratified, clustered, and stratified-clustered designs.
  • Weighted least squares (WLS) support.
  • Deterministic seeding, reproducible permutations.

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.

Back to top