Randomization inference with stata

Author(s)
Simon Heß
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.

Organisation(s)
Department of Economics
External organisation(s)
Johann Wolfgang Goethe-Universität Frankfurt am Main
Journal
Stata Journal
Volume
17
Pages
630-651
No. of pages
22
ISSN
1536-867X
DOI
https://doi.org/10.1177/1536867x1701700306
Publication date
09-2017
Peer reviewed
Yes
Austrian Fields of Science 2012
502025 Econometrics, 502057 Experimental economics
Keywords
ASJC Scopus subject areas
Mathematics (miscellaneous)
Portal url
https://ucris.univie.ac.at/portal/en/publications/randomization-inference-with-stata(d430db47-0292-4633-813c-bef78397e1f2).html