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

CRAN

358

Last 30 days

11095th

955

Last 90 days

4.1K

Last year

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

r2u CRAN

9

Last 30 days

24

Last 90 days

105

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

0

Last 7 days

10

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 WARNING
2 NOTE
9 OK
Show all 13 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 WARNING
r-devel-linux-x86_64-fedora-gcc WARNING
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 (4 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
WARNING r-devel-linux-x86_64-fedora-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘RDperm.Rnw’ using knitr
Error: processing vignette 'RDperm.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'RDperm.tex' failed.
LaTeX errors:
! LaTeX Error: Command \c@ex already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! Emergency stop.
 ...                                              
                                                  
l.131 
      
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘RDperm.Rnw’

SUMMARY: processing the following file failed:
  ‘RDperm.Rnw’

Error: Vignette re-building failed.
Execution halted
WARNING r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘RDperm.Rnw’ using knitr
Error: processing vignette 'RDperm.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'RDperm.tex' failed.
LaTeX errors:
! LaTeX Error: Command \c@ex already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! Emergency stop.
 ...                                              
                                                  
l.131 
      
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘RDperm.Rnw’

SUMMARY: processing the following file failed:
  ‘RDperm.Rnw’

Error: Vignette re-building failed.
Execution halted

Additional Issues

M1mac Details →

Check History

WARNING 10 OK · 2 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 5, 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
WARNING r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘RDperm.Rnw’ using knitr
Error: processing vignette 'RDperm.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'RDperm.tex' failed.
LaTeX errors:
! LaTeX Error: Command \c@ex already defined.
      
...[truncated]...
                         
l.131 
      
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘RDperm.Rnw’

SUMMARY: processing the following file failed:
  ‘RDperm.Rnw’

Error: Vignette re-building failed.
Execution halted
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

12 tracked
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