Power with Fieller [General Sta­tis­tics]

posted by martin  – Austria, 2012-11-15 18:29 (4972 d 12:56 ago) – Posting: # 9534
Views: 7,394

Dear all!

We recently encountered an unexpected behavior (at least I was not aware of it) with Fieller confidence intervals. It seems that the power for showing equivalence is not maximized at delta = 1 for rather large variances. Is there an error in the code or is this behavior well known?

best regards

martin

library(pairwiseCI)
set.seed(7750)
nsim <- 1E5
sd <- 0.25
res1 <- res2 <- res3 <- res4 <- matrix(NA,ncol=2,nrow=nsim)
n <- 10
for(i in 1:nsim){
   a1 <- rnorm(n,1,sd=sd)
   a2 <- rnorm(n,0.975,sd=sd)
   a3 <- rnorm(n,1.025,sd=sd)
   a4 <- rnorm(n,1.050,sd=sd)
   b <- rnorm(n,1,sd=sd)
   res1[i,] <- as.vector(Param.ratio(a1,b,conf.level=0.9,var.equal=F)$conf.int)
   res2[i,] <- as.vector(Param.ratio(a2,b,conf.level=0.9,var.equal=F)$conf.int)
   res3[i,] <- as.vector(Param.ratio(a3,b,conf.level=0.9,var.equal=F)$conf.int)
   res4[i,] <- as.vector(Param.ratio(a4,b,conf.level=0.9,var.equal=F)$conf.int)
}

# delta=1: expected to have the largest power
mean(res1[,1]>0.8 & res1[,2]<1.25)
# delta=0.975
mean(res2[,1]>0.8 & res2[,2]<1.25)
# delta=1.025
mean(res3[,1]>0.8 & res3[,2]<1.25)
# delta=1.05
mean(res4[,1]>0.8 & res4[,2]<1.25)

Complete thread:

UA Flag
Activity
 Admin contact
23,655 posts in 4,993 threads, 1,572 registered users;
378 visitors (0 registered, 378 guests [including 25 identified bots]).
Forum time: 08:26 CEST (Europe/Vienna)

The real struggle is not between the right and the left
but between the party of the thoughtful
and the party of the jerks.    Jimmy Wales

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