Randomization Inference with Stata: A Guide and Software
Open accessThe DOI matches its Crossref record; 24 of the 24 references it cites were found in a registry or an index.
Abstract
Randomization inference or permutation tests are only sporadically used in economics and other social sciences—this despite a steep increase in randomization in field and laboratory experiments that provide perfect experimental setups for applying randomization inference. In the context of causal inference, such tests can handle problems often faced by applied researchers, including issues arising in the context of small samples, stratified or clustered treatment assignments, or nonstandard randomization techniques. Standard statistical software packages have either no implementation of randomization tests or very basic implementations. Whenever researchers use randomization inference, they regularly code individual program routines, risking inconsistencies and coding mistakes. In this article, I show how randomization inference can best be conducted in Stata and introduce a new command, ritest, to simplify such analyses. I illustrate this approach's usefulness by replicating the results in Fujiwara and Wantchekon (2013, American Economic Journal: Applied Economics 5: 241–255) and running simulations. The applications cover clustered and stratified assignments, with varying cluster sizes, pairwise randomization, and the computation of nonapproximate p-values. The applications also touch upon joint hypothesis testing with randomization inference.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Mostly Harmless Econometrics: An Empiricist's Companion
Angrist, J. D., & Pischke, J.-S. (2009) · doi:10.1515/9781400829828 · Cited by 9,467
Mostly Harmless Econometrics: An Empiricist's Companion
Angrist, J. D., & Pischke, J.-S. (2008) · doi:10.2307/j.ctvcm4j72 · Cited by 5,051
A Practitioner’s Guide to Cluster-Robust Inference
Colin Cameron, A., & Miller, D. L. (2015) · Journal of Human Resources · doi:10.3368/jhr.50.2.317 · Cited by 5,037
Fisher, R. A. (1936) · BMJ · doi:10.1136/bmj.1.3923.554-a · Cited by 4,980
Causal Inference for Statistics, Social, and Biomedical Sciences: An Introduction
Imbens, G. W., & Rubin, D. B. (2015) · doi:10.1017/cbo9781139025751 · Cited by 4,210
Rosenbaum, P. R. (2002) · Springer Series in Statistics · doi:10.1007/978-1-4757-3692-2 · Cited by 2,394
Handbook of development economics
de Melo, J. (1992) · Journal of Development Economics · doi:10.1016/0304-3878(92)90010-7 · Cited by 1,645
Using Randomization in Development Economics Research: A Toolkit
Duflo, E., Glennerster, R., & Kremer, M. (2006) · National Bureau of Economic Research · doi:10.3386/t0333 · Cited by 1,191
Design of Observational Studies
Rosenbaum, P. R. (2010) · Springer Series in Statistics · doi:10.1007/978-1-4419-1213-8 · Cited by 1,150
In Pursuit of Balance: Randomization in Practice in Development Field Experiments
Bruhn, M., & McKenzie, D. (2009) · American Economic Journal: Applied Economics · doi:10.1257/app.1.4.200 · Cited by 788 · cited 1×
“Bugni, Canay, and Shaikh (2016), like Bruhn and McKenzie (2009), show that when”
Free Distribution or Cost-Sharing? Evidence from a Randomized Malaria Prevention Experiment*
Cohen, J., & Dupas, P. (2010) · Quarterly Journal of Economics · doi:10.1162/qjec.2010.125.1.1 · Cited by 762
Young, A. (2019) · The Quarterly Journal of Economics · doi:10.1093/qje/qjy029 · Cited by 631
Exact and Approximate Stepdown Methods for Multiple Hypothesis Testing
Romano, J. P., & Wolf, M. (2005) · Journal of the American Statistical Association · doi:10.1198/016214504000000539 · Cited by 609 · cited 5×
“Methods for this were developed by Romano and Wolf (2005) and developed further by Young (2016).”
InfluentialWild Bootstrap Inference for Wildly Different Cluster Sizes
MacKinnon, J. G., & Webb, M. D. (2017) · Journal of Applied Econometrics · doi:10.1002/jae.2508 · Cited by 454
Cattaneo, M. D., Frandsen, B. R., & Titiunik, R. (2015) · Journal of Causal Inference · doi:10.1515/jci-2013-0010 · Cited by 346
Can Informed Public Deliberation Overcome Clientelism? Experimental Evidence from Benin
Fujiwara, T., & Wantchekon, L. (2013) · American Economic Journal: Applied Economics · doi:10.1257/app.5.4.241 · Cited by 262
Tantalus on the Road to Asymptopia
Leamer, E. E. (2010) · Journal of Economic Perspectives · doi:10.1257/jep.24.2.31 · Cited by 252
Ichino, N., & Schündeln, M. (2012) · The Journal of Politics · doi:10.1017/s0022381611001368 · Cited by 218
Cattaneo, M. D., Titiunik, R., & Vázquez-Baré, G. (2017) · Journal of Policy Analysis and Management · doi:10.1002/pam.21985 · Cited by 193
Inference in Regression Discontinuity Designs under Local Randomization
Cattaneo, M. D., Titiunik, R., & Vázquez-Baré, G. (2016) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x1601600205 · Cited by 187
Journal of Policy Analysis and Management
Kafandaris, S. (1982) · Journal of the Operational Research Society · doi:10.1057/jors.1982.167 · Cited by 161
Randomization in Clinical Trials
Rosenberger, W. F., & Lachin, J. M. (2015) · Wiley series in probability and statistics · doi:10.1002/9781118742112 · Cited by 155
Inference under covariate-adaptive randomization
Bugni, F. A., Canay, I. A., & Shaikh, A. M. (2026) · doi:10.1920/wp.cem.2017.2517 · Cited by 47
A Permutation Test for the Regression Kink DesignPreprint
Ganong, P., & Jäger, S. (2017) · RePEc: Research Papers in Economics · doi:10.6084/m9.figshare.5144311 · Cited by 8
Cited by
Does Diversity Matter for Health? Experimental Evidence from Oakland
Alsan, M., Garrick, O., & Graziani, G. (2019) · American Economic Review · doi:10.1257/aer.20181446 · Cited by 676
Does Diversity Matter for Health? Experimental Evidence from Oakland
Alsan, M., Garrick, O., & Graziani, G. (2018) · doi:10.3386/w24787 · Cited by 160
Worries of the poor: The impact of financial burden on the risk attitudes of micro-entrepreneurs
Dalton, P. S., Nhung, N., & Rüschenpöhler, J. (2020) · Journal of Economic Psychology · doi:10.1016/j.joep.2019.102198 · Cited by 84
Dong, M., & Oberson, R. (2022) · Accounting and Business Research · doi:10.1080/00014788.2021.1952060 · Cited by 54
“(2020) and use the randomisation inference test developed by Heß (2017). The randomisation inference tests on systematic risk (LRMES) reveal that our estimated coefficient on the interaction term POST∗CTA BANK is statistically significant at the 1% (5%) level and is larger in magnitude than almost all simulated effect…”
MethodNix, J., Pickett, J. T., & Mitchell, R. J. (2019) · Journal of Experimental Criminology · doi:10.1007/s11292-019-09363-4 · Cited by 41
Metadata
- Authors
- Heß, S.
- Venue
- The Stata Journal: Promoting communications on statistics and Stata
- Publisher
- SAGE Publications
- Published
- 2017-09
- Volume
- 17
- Issue
- 3
- Pages
- 630-651
- ISSN
- 1536-867X (ISSN-L)
- 1536-8734
- OpenAlex
- W2768098152
- Cited by
- 318
- References
- 24
- FWCI
- 13.76
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.