Discontinuity = artifact [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2016-02-02 01:23 (3370 d 17:36 ago) – Posting: # 15913
Views: 5,251

Hi Mittyri,

❝ There is a discontinuity at CV=0.3. I cannot figure out the reason.


You introduced it yourself with the highlighted parts of the code:

  if (x1[j] > 0.3) {

❝     y1[j] <- power.scABEL(CV=x1[j], theta0=GMR, n=n, des=des[1], reg="EMA")
❝     y2[j] <- power.scABEL(CV=x1[j], theta0=GMR, n=n, des=des[2], reg="EMA")
❝   }
❝   if (x1[j] <= 0.3) {
❝     y1[j] <- power.TOST(CV=x1[j], theta0=GMR, n=n, des= des[1])
❝     y2[j] <- power.TOST(CV=x1[j], theta0=GMR, n=n, des= des[2])
❝   }


If you indend to go with reference-scaling you have to state that in the protocol. Based on that you perform the sample size estimation, but always with sampleN.scABEL(). Once the study is done, you may scale or not (dependent on CVwR). Hence, the only fair comparison would be ABE (power.TOST if you don’t intend to scale) with ABEL (power.scABEL) over the entire range of CVs, like this:

library(PowerTOST)
CV       <- seq(0.25, 0.55, 0.01)
pwr.ABEL <- vector()
pwr.ABE  <- pwr.ABEL
for (j in seq_along(CV)) {
  pwr.ABEL[j] <- power.scABEL(CV=CV[j], theta0=0.95,
                              n=48, design="2x2x3")
  pwr.ABE[j]  <- power.TOST(CV=CV[j], theta0=0.95,
                            n=48, design="2x2x3")
}
plot(CV, pwr.ABEL, type="l", col="blue", lwd=2,
  ylim=c(0.90, 1), ylab="power", las=1)
lines(CV, pwr.ABE, col="red", lwd=2)
abline(v=c(0.3, 0.5), lty=3)
legend("topright", legend=c("ABEL", "ABE"),
  col=c("blue", "red"), lwd=rep(2, 2))

or
[image]

With your code you would jump at 0.30 from the red line (ABE) to the blue line (ABEL). Note that even at CV 0.25 power of ABEL is slightly larger than the one of ABE since there is small chance that you are allowed to scale. That’s the tricky part with reference scaling. The simulation – as the scaling model itself* – is based on the true (but unknown) θ0 and σwR. By pure chance (CVwR >0.30) you will be allowed to scale although the drug is not highly variable (σwR ≤0.2936). This is the (main?) reason behind the inflation of the type I error. Another story.



Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,668 registered users;
13 visitors (0 registered, 13 guests [including 2 identified bots]).
Forum time: 19:59 CEST (Europe/Vienna)

It is a well-known experience that the only truly enjoyable and
profitable way of studying mathematics is the method of
“filling in details” by one’s own efforts.    Cornelius Lanczos

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