Skip to content

RATest

Randomization Tests

v0.1.10 · Sep 28, 2022 · GPL (>= 2)

Description

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.

Downloads

354

Last 30 days

10827th

960

Last 90 days

4.2K

Last year

Trend: +7.6% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Mauricio Olivares <mau.olivarego@gmail.com>’

Found the following (possibly) invalid file URIs:
  URI: mauricio.olivares@ucl.ac.uk
    From: inst/doc/RDperm.pdf
  URI: i.sarmiento@uniandes.edu.co
    From: inst/doc/RDperm.pdf
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Mauricio Olivares <mau.olivarego@gmail.com>’

Found the following (possibly) invalid file URIs:
  URI: mauricio.olivares@ucl.ac.uk
    From: inst/doc/RDperm.pdf
  URI: i.sarmiento@uniandes.edu.co
    From: inst/doc/RDperm.pdf

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Mauricio Olivares <mau.olivarego@gmail.com>’

Found the following (possibly) invalid file URIs:
  URI: mauricio.olivares@ucl.ac.uk
    From: inst/doc/RDperm.pdf
  URI: i.sarmiento@uniandes.edu.co
    From: inst/doc/RDperm.pdf
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Mauricio Olivares <mau.olivarego@gmail.com>’

Found the following (possibly) invalid file URIs:
  URI: mauricio.olivares@ucl.ac.uk
    From: inst/doc/RDperm.pdf
  URI: i.sarmiento@uniandes.edu.co
    From: inst/doc/RDperm.pdf

Dependency Network

Dependencies Reverse dependencies ggplot2 gridExtra quantreg RATest

Version History

new 0.1.10 Mar 10, 2026
updated 0.1.10 ← 0.1.9 diff Sep 28, 2022
updated 0.1.9 ← 0.1.8 diff Jul 12, 2021
updated 0.1.8 ← 0.1.7 diff Oct 16, 2020
updated 0.1.7 ← 0.1.6 diff Jan 23, 2020
updated 0.1.6 ← 0.1.5 diff Jul 17, 2019
updated 0.1.5 ← 0.1.4 diff Jul 11, 2019
updated 0.1.4 ← 0.1.3 diff Nov 29, 2018
updated 0.1.3 ← 0.1.2 diff Oct 30, 2018
updated 0.1.2 ← 0.1.1 diff Jan 22, 2018
updated 0.1.1 ← 0.1.0 diff Oct 10, 2017
new 0.1.0 Aug 13, 2017