Yes, but why? [Power / Sample Size]
Hi kms,
THX for providing the data. I guess you mean maximum concentrations?
When doubting your calculations I stand corrected!
Gives:
Modifying my simulation code for
![[image]](img/uploaded/image480.png)
Hence, such a high power is unlikely but possible.
As usual power is more sensitive to changes in the GMR than in the CV:
One question remains open:

❝ These are the results i'm finding maximum times.
THX for providing the data. I guess you mean maximum concentrations?
When doubting your calculations I stand corrected!
library(PowerTOST)
# assumed
CV.0 <- 0.2 # CV-intra
theta0.0 <- 1.1 # T/R-ratio
target <- 0.8 # desired (target) power
dor <- 10 # expected dropout rate in percent
# observed
CV.1 <- 0.1836
theta0.1 <- 0.96
n <- 34
# sample size and power
plan <- sampleN.TOST(CV=CV.0, theta0=theta0.0, targetpower=target)
# Adjust for expected dropout rate and round up to next even
N.ad <- ceiling(plan[["Sample size"]]/(1-dor/100)/2)*2
# power for various number of dropouts #
elig <- seq(N.ad, 2*plan[["Sample size"]]-N.ad, -1)
pwr1 <- data.frame(dosed=rep(N.ad, length(elig)),
dropouts=N.ad-elig, eligible=elig, power=NA)
for (j in seq_along(elig)) {
pwr1$power[j] <- suppressMessages(power.TOST(CV=CV.0, theta0=theta0.0,
n=elig[j]))
}
cat("Ante hoc power for various number of dropouts:\n"); print(signif(pwr1, 4), row.names=FALSE)
cat("Post hoc power:", signif(power.TOST(CV=CV.1, theta0=theta0.1, n=n), 4), "\n")
Gives:
+++++++++++ Equivalence test - TOST +++++++++++
Sample size estimation
-----------------------------------------------
Study design: 2x2 crossover
log-transformed data (multiplicative model)
alpha = 0.05, target power = 0.8
BE margins = 0.8 ... 1.25
True ratio = 1.1, CV = 0.2
Sample size (total)
n power
32 0.810068
✔Ante hoc power for various number of dropouts:
dosed dropouts eligible power
36 0 36 0.8505
36 1 35 0.8409
36 2 34 0.8314
36 3 33 0.8207
36 4 32 0.8101
36 5 31 0.7982
36 6 30 0.7864
36 7 29 0.7732
36 8 28 0.7601
Post hoc power: 0.9917
✔Modifying my simulation code for
theta0=1/1.1
and n=34
I got:1e+05 simulated studies with “post hoc” power of
≥ target : 59.75%
≥ achieved : 57.18%
≥ 0.90 : 31.51%
≥ 0.95 : 15.18%
[0.95, 0.99]: 12.59%
≥ 0.9917 : 2.11%
![[image]](img/uploaded/image480.png)
Hence, such a high power is unlikely but possible.
As usual power is more sensitive to changes in the GMR than in the CV:
pwr.0 <- power.TOST(CV=0.2, theta0=1/1.1, n=34)
cat("Relative increase in power due to",
"\n better CV :", sprintf("%5.2f%%",
100*(power.TOST(CV=0.1836, theta0=1/1.1, n=34)-pwr.0)/pwr.0),
"\n better GMR:", sprintf("%5.2f%%",
100*(power.TOST(CV=0.2, theta0=0.96, n=34)-pwr.0)/pwr.0),
"\n both :", sprintf("%5.2f%%",
100*(power.TOST(CV=0.1836, theta0=0.96, n=34)-pwr.0)/pwr.0), "\n")
Relative increase in power due to
better CV : 6.16%
better GMR: 17.95%
both : 19.28%
One question remains open:
❝ Can you explain to us why you performed a “posthoc analysis” at all? What did you want to achieve? To repeat ElMaestro:
❝ ❝ ❝ ❝ Try and ask yourself which question post-hoc power actually answers. Try and formulate it in a very specific sentence.

—
Dif-tor heh smusma 🖖🏼 Довге життя Україна!![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- Power is getting high kms.srinivas 2017-12-26 07:39 [Power / Sample Size]
- Power is getting high? d_labes 2017-12-26 12:08
- Stop estimating post hoc power! Helmut 2017-12-26 12:22
- Stop estimating post hoc power! kms.srinivas 2017-12-26 13:00
- Stop estimating post hoc power! ElMaestro 2017-12-26 14:11
- Simulations Helmut 2017-12-26 15:51
- Simulations BE-proff 2017-12-27 06:53
- Simulations ElMaestro 2017-12-27 07:25
- Simulations Yura 2017-12-27 08:23
- Simulations kms.srinivas 2017-12-27 09:11
- Simulations Yura 2017-12-27 10:07
- α and 1–β Helmut 2017-12-27 12:57
- α and 1–β Yura 2017-12-27 13:33
- α and 1–β Helmut 2017-12-27 14:31
- α and 1–β Yura 2017-12-28 06:50
- Educate the IEC and regulators Helmut 2017-12-28 11:30
- α and 1–β Yura 2017-12-28 06:50
- α and 1–β Helmut 2017-12-27 14:31
- α and 1–β Yura 2017-12-27 13:33
- α and 1–β Helmut 2017-12-27 12:57
- “Forced BE” 101 Helmut 2017-12-27 12:23
- “Forced BE” 101 kms.srinivas 2017-12-27 12:41
- Would you be so kind answering our questions? Helmut 2017-12-27 13:02
- Would you be so kind answering our questions? kms.srinivas 2017-12-28 05:53
- Yes, but why?Helmut 2017-12-28 11:47
- Yes, but why? DavidManteigas 2017-12-28 16:59
- Optimists and pessimists Helmut 2017-12-28 17:33
- "normal" GMR setting d_labes 2017-12-28 18:57
- Example for discussion mittyri 2017-12-28 22:06
- Example for discussion Helmut 2017-12-28 22:33
- I prefer to play it safe Helmut 2017-12-28 22:10
- Example for discussion mittyri 2017-12-28 22:06
- "normal" GMR setting d_labes 2017-12-28 18:57
- Full ACK d_labes 2017-12-28 17:41
- About GMR 1.10 kms.srinivas 2017-12-29 13:20
- Better 0.95 or 0.90 Helmut 2017-12-29 16:18
- Optimists and pessimists Helmut 2017-12-28 17:33
- Yes, but why? Yura 2017-12-29 13:46
- Buffon's needle Astea 2018-01-20 23:55
- Buffon's needle Oleg777 2018-10-09 22:48
- 0.95 or 1.05 Helmut 2018-10-10 13:41
- Buffon's needle Helmut 2018-10-10 12:46
- Buffon's needle Astea 2018-10-11 23:14
- School maths Helmut 2018-10-12 01:10
- School russian Astea 2018-10-12 12:41
- Offtop: Umschrift der westlichen Eigennamen auf Russisch mittyri 2018-10-12 23:25
- School maths Helmut 2018-10-12 01:10
- Buffon's needle Astea 2018-10-11 23:14
- Buffon's needle Oleg777 2018-10-09 22:48
- Yes, but why? DavidManteigas 2017-12-28 16:59
- Yes, but why?Helmut 2017-12-28 11:47
- EEU? mittyri 2017-12-28 21:52
- EEU? Yura 2017-12-29 13:41
- EEU - pharmacokinetic equation??? mittyri 2017-12-29 14:11
- EEU? Beholder 2018-01-16 15:10
- EEU? Yura 2017-12-29 13:41
- Would you be so kind answering our questions? kms.srinivas 2017-12-28 05:53
- Would you be so kind answering our questions? Helmut 2017-12-27 13:02
- “Forced BE” 101 kms.srinivas 2017-12-27 12:41
- Simulations Yura 2017-12-27 10:07
- Simulations kms.srinivas 2017-12-27 09:11
- Simulations xtianbadillo 2018-01-18 22:22
- Simulations BE-proff 2017-12-27 06:53
- Stop estimating post hoc power! kms.srinivas 2017-12-26 13:00
- Numbers don't lie ElMaestro 2017-12-28 20:13