Versatile sample-size calculation using simulation

22Citations
Citations of this article
25Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

I present a new Stata command, simsam, that uses simulation to determine the sample size required to achieve a given statistical power for any hypothesis test under any probability model that can be programmed in Stata. Simsam returns the smallest sample size (or smallest multiple of 5, 10, or some other user-specified increment) so that the estimated power exceeds the target. The user controls the precision of the power estimate, and power is reported with a confidence interval. The sample size returned is reliable to the extent that if simsam is repeated, it will, nearly every time, give a sample size no more than one increment away. © 2013 StataCorp LP.

Cite

CITATION STYLE

APA

Hooper, R. (2013). Versatile sample-size calculation using simulation. Stata Journal, 13(1), 21–38. https://doi.org/10.1177/1536867x1301300103

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free