Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

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

Campos-Mercade, Pol LU (2024) In Working papers
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.
Please use this url to cite or link to this publication:
author
organization
publishing date
type
Working paper/Preprint
publication status
published
subject
keywords
Power analysis, Simulations, Stata, C15, C90
in
Working papers
issue
2024:4
language
English
LU publication?
yes
id
ae2024b0-a610-425f-bac1-6194d219ac3b
date added to LUP
2024-09-02 09:25:24
date last changed
2024-09-02 09:25:24
@misc{ae2024b0-a610-425f-bac1-6194d219ac3b,
  abstract     = {{You want to run an experiment where you anticipate finding a treatment effect.<br/>How large should your sample size be to have a reasonable chance of detecting<br/>significant results? In this manuscript, I present and explain the Stata code I use to<br/>address this question. The code uses simulations to conduct power analyses,<br/>offering a flexible alternative to the commonly used analytical tools. Unlike<br/>traditional methods, this approach can accommodate any experimental design and<br/>statistical test that Stata supports. The code is straightforward, user-friendly, and<br/>can be used effectively with minimal coding experience.}},
  author       = {{Campos-Mercade, Pol}},
  keywords     = {{Power analysis; Simulations; Stata; C15; C90}},
  language     = {{eng}},
  note         = {{Working Paper}},
  number       = {{2024:4}},
  series       = {{Working papers}},
  title        = {{Power Analysis Through Simulations in STATA: A Step-by-Step Guide}},
  url          = {{https://lup.lub.lu.se/search/files/194368172/WP24_4.pdf}},
  year         = {{2024}},
}