The Power at limits [🇷 for BE/BA]

posted by d_labes  – Berlin, Germany, 2009-10-07 13:32 (6089 d 19:48 ago) – Posting: # 4312
Views: 45,792

Dear All!

Back from the date with the Blonde downstairs an having some spare time ;-),

Seems ElMaestro's question is able to put the power to the limits.
Here results of power.equivalence.md around N=6:

R code:
library(MBESS)

alpha    <- 0.05
logscale <- TRUE
ltheta1  <- 0.8
ltheta2  <- 1/ltheta1
ldiff    <- 0.95
CV       <- 0.65                # added [HS]
sigma    <- sqrt(log(1+(CV)^2)) # added [HS]
n        <- c(4,6,8,10,12,14,16)
df       <- n-2
pow      <- mapply(power.equivalence.md,n=n,nu=df, MoreArgs =list(alpha, logscale, ltheta1, ltheta2, ldiff, sigma))
res      <- data.frame(n=n, power=pow)
res


Result:
   n        power
1  4 0.0045417784
2  6 0.0016203829
3  8 0.0009763342
4 10 0.0007993335
5 12 0.0007966979
6 14 0.0009067329
7 16 0.0011306148


I would expect power is increasing with increasing n.
Or miss I here something?

BTW: My SAS code shows the same effect.
All this is hairsplitting of course.


Edit: Added two lines above to allow copy-pasting of code to R-console. BTW, change the sample size vector to n<-c(4,6,8,10,12,14,16,38,40,152,154,344,346) and watch (the gamma-function needs the faculty, which runs out of steam - at least on 32-bit operating systems). [Helmut]

Regards,

Detlew

Complete thread:

UA Flag
Activity
 Admin contact
23,653 posts in 4,991 threads, 1,570 registered users;
219 visitors (0 registered, 219 guests [including 20 identified bots]).
Forum time: 09:20 CEST (Europe/Vienna)

In theory, there is no difference between theory and practice.
But, in practice, there is.    Jan L.A. van de Snepscheut

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