Lord Yupa wrote:
How can I calculate the sample size for an equivalence trial with stata?
The only hint is a program i found in statalist
(http://www.stata.com/statalist/archive/2003-02/msg00204.html), but this
doesn't work for me (stata v8.2).
--------------------------------------------------------------------------------
It seems as if Philip Ryan's program would work with Stata 8.2. Did you
take note of the erratum
( www.stata.com/statalist/archive/2003-02/msg00212.html ) that he posted
shortly afterward?
Regardless of whether you're working with proportions or another data type,
simulation would be an option. See the references Philip give in this
regard in www.stata.com/statalist/archive/2003-02/msg00211.html . The basic
algorithm for proportions, for example, would be to generate a few thousand
sets of data at the boundary of the alternative hypotheses--that is, at your
chosen delta--using Joseph Hilbe's and Walter Linde-Zwirble's -rnd-, to
calculate confidence intervals for the risk difference (risk ratio or odds
ratio, whatever), and then to determine the proportion of the datasets in
which the confidence intervals contained zero (or one).
Joseph Coveney
*
* 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/