TY - JOUR
ID - st0282
A1 - Hooper, R.
TI - Versatile sample-size calculation using simulation
JF - Stata Journal
PB - Stata Press
CY - College Station, TX
Y1 - 2013
VL - 13
IS - 1
SP - 21
EP - 38
KW - simsam
KW - sample size
KW - power
KW - simulation
UR - http://www.stata-journal.com/article.html?article=st0282
L1 - http://www.stata-journal.com/sjpdf.html?article=st0282
AB - 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.
ER -