Skip to content
CRAN requires the check problems on this package to be fixed before 2026-08-21 or it will be archived.

RATest

0.1.10

Randomization Tests

0packages depend
4Kdownloads / year
test coverage
7/13checks pass

Overview

About
Maintained by Mauricio OlivaresFirst published 2017-08-1411 releasesCRAN page ↗GitHub ↗

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

CRAN checks
6WARNING7OK
Failing flavors
  • 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
Slowest check: 11.1 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct
Check history
  • WARNING2026-06-05
    10 OK · 2 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 94 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
14%
Documented parameters
98%
Return-value docs
100%
References docs
67%

Downloads

4K
CRAN downloads in the past year
Rank #11,210 · ~11/day · ~331/mo
Daily download trend is not available in this view yet.
21730 days
87890 days
4K1 year
Compare downloads with other packages →
Also on122 r2u47 c2d4u

Repository

Repository
7Stars
1Forks
2Open issues
0Open PRs
0Releases
22Commits
1Contributors
22 commits · Last activity 2018-12-05

Stars over time

2025-06-06 · 72026-07-07 · 7

Repository practices

Upstream repositoryBeta

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.

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (3)
Imports (3)
statsquantregcompiler
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer · added in 0.1.7
Authors (2)
Author, Maintainer · added in 0.1.7
Listed in earlier versions (1)
no longer listed · 0.1.0 to 0.1.6
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.10Latest
    2022-09-29 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.9
    2021-07-13 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.8
    2020-10-17 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.7
    2020-01-24 · diff ↗
  • 0.1.6
    2019-07-18 · diff ↗
  • 0.1.5
    2019-07-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.4
    2018-11-30 · diff ↗
  • 0.1.3
    2018-10-31 · diff ↗
Show 5 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.2
    2018-01-23 · diff ↗
  • 0.1.1
    2017-10-11 · diff ↗
  • 0.1.0
    2017-08-14
  • R
    R 3.4.0 released · 2017-04-21

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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("RATest")
Olivares, M., & Sarmiento-Barbieri, I. (2022). RATest: Randomization Tests (Version 0.1.10) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for RATest version 0.1.10 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy