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
358
Last 30 days
11095th
955
Last 90 days
4.1K
Last year
Trend: +34.1% (30d vs prior 30d)
9
Last 30 days
24
Last 90 days
105
Last year
Trend: -40% (30d vs prior 30d)
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
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)
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
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
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
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
Check History
WARNING 10 OK · 2 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 5, 2026
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
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
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
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
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