IDEAS home Printed from https://ideas.repec.org/p/hhs/lunewp/2024_004.html
   My bibliography  Save this paper

Power Analysis Through Simulations in STATA: A Step-by-Step Guide

Author

Listed:
  • Campos-Mercade, Pol

    (Department of Economics, Lund University)

Abstract

You want to run an experiment where you anticipate finding a treatment effect. How large should your sample size be to have a reasonable chance of detecting significant results? In this manuscript, I present and explain the Stata code I use to address this question. The code uses simulations to conduct power analyses, offering a flexible alternative to the commonly used analytical tools. Unlike traditional methods, this approach can accommodate any experimental design and statistical test that Stata supports. The code is straightforward, user-friendly, and can be used effectively with minimal coding experience.

Suggested Citation

  • Campos-Mercade, Pol, 2024. "Power Analysis Through Simulations in STATA: A Step-by-Step Guide," Working Papers 2024:4, Lund University, Department of Economics.
  • Handle: RePEc:hhs:lunewp:2024_004
    as

    Download full text from publisher

    File URL: https://lucris.lub.lu.se/ws/portalfiles/portal/194368172/WP24_4
    File Function: Full text
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. John List & Sally Sadoff & Mathis Wagner, 2011. "So you want to run an experiment, now what? Some simple rules of thumb for optimal experimental design," Experimental Economics, Springer;Economic Science Association, vol. 14(4), pages 439-457, November.
    2. Charles Bellemare & Luc Bissonnette & Sabine Kröger, 2016. "Simulating power of economic experiments: the powerBBK package," Journal of the Economic Science Association, Springer;Economic Science Association, vol. 2(2), pages 157-168, November.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Maurizio Canavari & Andreas C. Drichoutis & Jayson L. Lusk & Rodolfo M. Nayga, Jr., 2018. "How to run an experimental auction: A review of recent advances," Working Papers 2018-5, Agricultural University of Athens, Department Of Agricultural Economics.
    2. Eszter Czibor & David Jimenez‐Gomez & John A. List, 2019. "The Dozen Things Experimental Economists Should Do (More of)," Southern Economic Journal, John Wiley & Sons, vol. 86(2), pages 371-432, October.
    3. Czibor, Eszter & Onderstal, Sander & Sloof, Randolph & van Praag, C. Mirjam, 2020. "Does relative grading help male students? Evidence from a field experiment in the classroom," Economics of Education Review, Elsevier, vol. 75(C).
    4. Cloos, Janis & Greiff, Matthias & Rusch, Hannes, 2021. "Editorial favoritism in the field of laboratory experimental economics (RM/20/014-revised-)," Research Memorandum 005, Maastricht University, Graduate School of Business and Economics (GSBE).
    5. Leah H. Palm-Forster & Paul J. Ferraro & Nicholas Janusch & Christian A. Vossler & Kent D. Messer, 2019. "Behavioral and Experimental Agri-Environmental Research: Methodological Challenges, Literature Gaps, and Recommendations," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 73(3), pages 719-742, July.
    6. Theodor Vladasel & Simon C. Parker & Randolph Sloof & Mirjam van Praag, 2024. "Revenue drift, incentives, and effort allocation in social enterprises," Journal of Economics & Management Strategy, Wiley Blackwell, vol. 33(3), pages 630-651, August.
    7. Kathryn N. Vasilaky & J. Michelle Brock, 2020. "Power(ful) guidelines for experimental economists," Journal of the Economic Science Association, Springer;Economic Science Association, vol. 6(2), pages 189-212, December.
    8. Sebastian Jobjörnsson & Henning Schaak & Oliver Musshoff & Tim Friede, 2023. "Improving the statistical power of economic experiments using adaptive designs," Experimental Economics, Springer;Economic Science Association, vol. 26(2), pages 357-382, April.
    9. Cloos, Janis & Greiff, Matthias & Rusch, Hannes, 2023. "Editorial favoritism in the field of laboratory experimental economics," Journal of Behavioral and Experimental Economics (formerly The Journal of Socio-Economics), Elsevier, vol. 107(C).
    10. Sule Alan & Gyongyi Loranth, 2013. "Subprime Consumer Credit Demand: Evidence from a Lender's Pricing Experiment," The Review of Financial Studies, Society for Financial Studies, vol. 26(9), pages 2353-2374.
    11. Attallah, May & Abildtrup, Jens & Stenger, Anne, 2022. "Non-monetary incentives for sustainable biomass harvest: An experimental approach," Resource and Energy Economics, Elsevier, vol. 69(C).
    12. Heggedal, Tom-Reiel & Helland, Leif & Neset Joslin, Knut-Eric, 2018. "Should I Stay or should I Go? Bandwagons in the lab," Journal of Economic Behavior & Organization, Elsevier, vol. 150(C), pages 86-97.
    13. Grüner Sven, 2020. "Sample Size Calculation in Economic Experiments," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 240(6), pages 791-823, December.
    14. Pedro Carneiro & Sokbae Lee & Daniel Wilhelm, 2020. "Optimal data collection for randomized control trials," The Econometrics Journal, Royal Economic Society, vol. 23(1), pages 1-31.
    15. Veronica Rattini, 2023. "Worker autonomy and performance: Evidence from a real‐effort experiment," Journal of Economics & Management Strategy, Wiley Blackwell, vol. 32(2), pages 300-327, April.
    16. Johannes Ledolter, 2013. "Economic Field Experiments: Comments on Design Efficiency, Sample Size and Statistical Power," Journal of Economics and Management, College of Business, Feng Chia University, Taiwan, vol. 9(2), pages 271-290, July.
    17. Eric Bettinger & Robert Fairlie & Anastasia Kapuza & Elena Kardanova & Prashant Loyalka & Andrey Zakharov, 2023. "Diminishing Marginal Returns to Computer‐Assisted Learning," Journal of Policy Analysis and Management, John Wiley & Sons, Ltd., vol. 42(2), pages 552-570, March.
    18. Julianna M. Butler & Christian A. Vossler, 2018. "What is an Unregulated and Potentially Misleading Label Worth? The case of “Natural”-Labelled Groceries," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 70(2), pages 545-564, June.
    19. Charles Bellemare & Luc Bissonnette & Sabine Kröger, 2016. "Simulating power of economic experiments: the powerBBK package," Journal of the Economic Science Association, Springer;Economic Science Association, vol. 2(2), pages 157-168, November.
    20. Azevedo, Eduardo M. & Mao, David & Montiel Olea, José Luis & Velez, Amilcar, 2023. "The A/B testing problem with Gaussian priors," Journal of Economic Theory, Elsevier, vol. 210(C).

    More about this item

    Keywords

    Power analysis; Simulations; Stata;
    All these keywords.

    JEL classification:

    • C15 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Statistical Simulation Methods: General
    • C90 - Mathematical and Quantitative Methods - - Design of Experiments - - - General

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hhs:lunewp:2024_004. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Iker Arregui Alegria (email available below). General contact details of provider: https://edirc.repec.org/data/delunse.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.