Package: RATest 0.1.4
RATest: Randomization Tests
A collection of randomization tests, data sets and examples. The current version focuses on three 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 (2017) <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 Miss 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 the goodness-of-fit testing problem with an estimated nuisance parameter. An application of this testing problem is the one of testing for heterogeneous treatment effects in a randomized control trial.
Authors:
RATest_0.1.4.tar.gz
RATest_0.1.4.zip(r-4.5)RATest_0.1.4.zip(r-4.4)RATest_0.1.4.zip(r-4.3)
RATest_0.1.4.tgz(r-4.4-any)RATest_0.1.4.tgz(r-4.3-any)
RATest_0.1.4.tar.gz(r-4.5-noble)RATest_0.1.4.tar.gz(r-4.4-noble)
RATest_0.1.4.tgz(r-4.4-emscripten)RATest_0.1.4.tgz(r-4.3-emscripten)
RATest.pdf |RATest.html✨
RATest/json (API)
# Install 'RATest' in R: |
install.packages('RATest', repos = c('https://ignaciomsarmiento.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ignaciomsarmiento/ratest/issues
- lee2008 - Dataset used in Lee
Last updated 6 years agofrom:533e17e8ea. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 31 2024 |
R-4.5-win | OK | Oct 31 2024 |
R-4.5-linux | OK | Oct 31 2024 |
R-4.4-win | OK | Oct 31 2024 |
R-4.4-mac | OK | Oct 31 2024 |
R-4.3-win | OK | Oct 31 2024 |
R-4.3-mac | OK | Oct 31 2024 |
Exports:CvM.statH.cdfPT.Khmaladze.fitRDpermRPT
Dependencies:clicolorspacefansifarverggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmgcvmunsellnlmepillarpkgconfigquantregR6RColorBrewerrlangscalesSparseMsurvivaltibbleutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Cramer - von Mises statistics | CvM.stat |
Regression Discontinuity Design Permutation test | H.cdf |
Dataset used in Lee (2008) | lee2008 |
Plot RDperm | plot.RDperm |
Non-Parametric Hypothesis Testing with a Nuisance Parameter: A Permutation Test | PT.Khmaladze.fit |
Regression Discontinuity Design Permutation Test | RDperm |
Robust Permutation Test | RPT |
Summarizing Regression Discontinuity Design Permutation Test | summary.RDperm |