NPavan
☆    

India,
2009-05-11 08:17
(5826 d 13:51 ago)

Posting: # 3670
Views: 9,803
 

 Calculation using Paired Equivalence in SAS [Power / Sample Size]

Dear all,
We are using Paired equivalence procedure in SAS Software for calculating sample size in bioequivalence studies (2x2 Cross over). My doubt is what ever the software gives is the final sample size? Or we need to double it? Please clarify this.
Thanks in advance.

Regards,
Pavan
d_labes
★★★

Berlin, Germany,
2009-05-11 10:59
(5826 d 11:09 ago)

@ NPavan
Posting: # 3672
Views: 8,319
 

 Proc Power (to know)

Dear Pavan,

❝ We are using Paired equivalence procedure in SAS


What is "paired equivalence procedure in SAS"? Never heard of such a procedure.
The only thing I know is Proc Power (new in SAS 9), which can be used in a wide variety of settings to calculate power or sample size.

❝ [...] My doubt is what ever the software gives is the

❝ final sample size? Or we need to double it?


Ever tried to compare your results with available tables or to recalculate some results of available tables in the literature?

F. i. Diletti, Hauschke, Steinijans,
"Sample size determination for bioequivalence assessment by means of confidence intervals"
Int. J. Clin. Pharmacol. Ther. Toxicol. 30, Suppl. 1, p. S51-58 (1991)

This is some sort of software validation always necessary.

This will also guide you in setting the numerous options in Proc Power, not very well explained (for the un-initiated :-D ) in the documentation, to obtain the desired correct results for your problem.

Regards,

Detlew
NPavan
☆    

India,
2009-05-11 11:33
(5826 d 10:35 ago)

@ d_labes
Posting: # 3673
Views: 8,371
 

 Paired Equivalence

Dear D.Labes

Paired Equivalence is one of the procedure for sample size calculation in Analyst application in SAS software.
SAS->Solutions->Analysis->Analyst->Sample Size->Paired Equivalence.

Regards,
Pavan
d_labes
★★★

Berlin, Germany,
2009-05-11 15:39
(5826 d 06:29 ago)

@ NPavan
Posting: # 3674
Views: 8,585
 

 Do not's

Dear Pavan!

I never have used the Analyst application in SAS up to now for sample size estimation purposes because it is not documented in full detail what is going on there behind the scenes.

Now after looking at the code produced by this application (in the macro language of SAS, a beasty dragon to struggle with :-D ) I noticed the following:
  1. None of the code does exactly met the sample size formulas for a 2x2 cross-over design! (To excuse this part of SAS software: At no place it is mentioned, that the sample size is valid for a 2x2 cross-over.)

  2. The paired equivalence test is the paired t-test with degrees of freedom df=n-1, whereas the correct df is n-2, if you consider period effects in the 2x2 cross-over.

  3. The obtained sample size is only in the order of the correct ones, if you specify the CV as SQRT(2)*CV(usual) = the CV of the log-differences, not the one in the usual sense, i.e. the intra-subject CV.
    (This is only mentioned in the deep jungle of the help files, not in the input window!)
    If CV is used in the usual sense of BE studies, the sample size is much to low, from which your original question (double of sample size?) originates I suspect.

  4. The achieved power of the iterative sample size determination is sometimes below the desired power because of a flaw implementation of the stopping rule of the iterative algorithm.

Example: CV=20%, input in the Analyst-application CV=0.28284
desired power 0.8, alpha=0.05, lower BE limit = 0.8, upper=1.25
Results of sample size:
null          achieved     |
ratio    N  power (df=N-1) | N(Diletti et al.)
---------------------------------------------
0.90    36    0.80028      |  38
0.95    18    0.79867      |  20
1.00    15    0.80074      |  16
1.05    18    0.79845      |  18
1.10    31    0.79942      |  32


Also the differences may be seen not substantial here, the sample sizes are nevertheless not the correct ones.

Lessons to learn:
  1. Do not use any software without full documentation of the implemented algorithms.
  2. Do not use any software without knowing what input is desired.
  3. Do not use any software without recalculation of some known test data (validation).
  4. Do not use the "Power to know". Especially if you don't know. Or have the power :-P. (This is not to insult or bother someone, but it is sometimes really hard to guess what SAS syntax really means and to bring SAS code to produce that results you need! I know about what I'm talking about, trust me.)

May be Others have more Donot's.

Regards,

Detlew
ElMaestro
★★★

Denmark,
2009-05-11 19:52
(5826 d 02:16 ago)

@ d_labes
Posting: # 3677
Views: 8,216
 

 Do not's

❝ 3. Do not use any software without recalculation of some known test

❝ data (validation).


3a. Do not upgrade software without recalculation of some known test data (validation).
3b. Do not port software from your neighbour's computer to your own computer without recalculation of some known test data (validation).

Bst regards
EM.
UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,669 registered users;
19 visitors (0 registered, 19 guests [including 1 identified bots]).
Forum time: 22:09 CEST (Europe/Vienna)

The difference between a surrogate and a true endpoint
is like the difference between a cheque and cash.
You can get the cheque earlier but then,
of course, it might bounce.    Stephen Senn

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5