RATest
0.1.10Randomization Tests
Overview
A collection of randomization tests, data sets and examples. The current version focuses on five testing problems and their implementation in empirical work. First, it facilitates the empirical researcher to test for particular hypotheses, such as comparisons of means, medians, and variances from k populations using robust permutation tests, which asymptotic validity holds under very weak assumptions, while retaining the exact rejection probability in finite samples when the underlying distributions are identical. Second, the description and implementation of a permutation test for testing the continuity assumption of the baseline covariates in the sharp regression discontinuity design (RDD) as in Canay and Kamat (2018) https://goo.gl/UZFqt7. More specifically, it allows the user to select a set of covariates and test the aforementioned hypothesis using a permutation test based on the Cramer-von Misses test statistic. Graphical inspection of the empirical CDF and histograms for the variables of interest is also supported in the package. Third, it provides the practitioner with an effortless implementation of a permutation test based on the martingale decomposition of the empirical process for testing for heterogeneous treatment effects in the presence of an estimated nuisance parameter as in Chung and Olivares (2021) doi:10.1016/j.jeconom.2020.09.015. Fourth, this version considers the two-sample goodness-of-fit testing problem under covariate adaptive randomization and implements a permutation test based on a prepivoted Kolmogorov-Smirnov test statistic. Lastly, it implements an asymptotically valid permutation test based on the quantile process for the hypothesis of constant quantile treatment effects in the presence of an estimated nuisance parameter.
Install
Health
- WARNING r-devel-linux-x86_64-debian-clang
- WARNING r-devel-linux-x86_64-debian-gcc
- WARNING r-devel-linux-x86_64-fedora-clang
- WARNING r-devel-linux-x86_64-fedora-gcc
- WARNING r-patched-linux-x86_64
- WARNING r-release-linux-x86_64
- WARNING2026-06-0510 OK · 2 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 14%
- Documented parameters
- 98%
- Return-value docs
- 100%
- References docs
- 67%
Downloads
Repository
Stars over time
Forks over time
Issues over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ignaciomsarmiento/ratest on 2026-08-16.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
11 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.1.10Latest
- RR 4.2.0 released · 2022-04-22
- 0.1.92021-07-13 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.1.82020-10-17 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.1.72020-01-24 · diff ↗
- 0.1.62019-07-18 · diff ↗
- 0.1.52019-07-12 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.1.42018-11-30 · diff ↗
- 0.1.32018-10-31 · diff ↗
Package metadata
- First published
- 2017-08-14
- Total releases
- 11 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.00
- Bundled data
- 94 KB / 1 file
- Download size
- 309 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RATest")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.