fastrerandomize: Hardware-Accelerated Rerandomization for Improved Balance

Provides hardware-accelerated tools for performing rerandomization and randomization testing in experimental research. Using a 'JAX' backend, the package enables exact rerandomization inference even for large experiments with hundreds of billions of possible randomizations. Key functionalities include generating pools of acceptable rerandomizations based on covariate balance, conducting exact randomization tests, and performing pre-analysis evaluations to determine optimal rerandomization acceptance thresholds. The package supports various hardware acceleration frameworks including 'CPU', 'CUDA', and 'METAL', making it versatile across accelerated computing environments. This allows researchers to efficiently implement stringent rerandomization designs and conduct valid inference even with large sample sizes. The package is partly based on Jerzak and Goldstein (2023) <doi:10.48550/arXiv.2310.00861>.

Package details

AuthorFucheng Warren Zhu [aut] (<https://orcid.org/0009-0001-5692-7572>), Aniket Sachin Kamat [aut] (<https://orcid.org/0009-0003-6411-1084>), Connor Jerzak [aut, cre] (<https://orcid.org/0000-0003-1914-8905>), Rebecca Goldstein [aut] (<https://orcid.org/0000-0002-9944-8440>)
MaintainerConnor Jerzak <connor.jerzak@gmail.com>
LicenseGPL-3
Version0.2
URL https://github.com/cjerzak/fastrerandomize-software
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fastrerandomize")

Try the fastrerandomize package in your browser

Any scripts or data that you put into this service are public.

fastrerandomize documentation built on April 4, 2025, 5:10 a.m.