Key points are not available for this paper at this time.
This paper describes how to write Stata programs to estimate the power of virtually any statistical test that Stata can perform. Examples given include the t test, Poisson regression, Cox regression, and the nonparametric rank-sum test.
Alan H. Feiveson (Sat,) studied this question.