Dear Statalisters,
I have a set of simulated case-control studies evaluating the risk as an
odds ratio.
However, suppose we have only one study. In addition, let�s assume that
n1 = 100, n2= 110, the exposure prevalence is 52%, alpha=5% and we want to
detect a 1.5-fold increase
in the odds (odds ratio of interest = 1.5)
I can estimate a post-hoc statistical power
using -sampsi-, right?
say:
sampsi .52 .619, n1(100) n2(110)
Nevertheless, how could I get the post-hoc statistical power using
-sampsi- without having to type this command for 10000
simulated studies?
I will be grateful for any help.
regards,
Tiago
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/