power.TOST.sim code [Outliers]
Dear BEQool!
I think it is better to look into the code
So the variance is calculated based on MSE, design constant and the number of subjects:
❝ Distributions (both normal and log-normal) are determined by their mean and variance. As discussed above, in order to get power we need distribution of PE; the mean is of course PE but what about the variance? Is the variance of PE distribution MSE? Or something else?
I think it is better to look into the code
# simulate point est. via normal distribution
pes <- rnorm(n=nsims, mean=diffm, sd=se.fac*sqrt(mse))
# simulate mse via chi-squared distribution
mses <- mse*rchisq(n=nsims, df=df)/df
So the variance is calculated based on MSE, design constant and the number of subjects:
power.TOST.sim <- function(<...>) {
<...>
d.no <- .design.no(design)
<...>
ades <- .design.props(d.no)
<...>
nc <- sum(1/n)
<...>
se.fac <- sqrt(ades$bkni * nc)
<...>
}
—
Kind regards,
Mittyri
Kind regards,
Mittyri
Complete thread:
- Outlier in fully replicate BE study Loky do 2021-06-16 00:49 [Outliers]
- Outlier in fully replicate BE study drgunasakaran1 2021-06-16 08:59
- Widening for clopidogrel BE study Loky do 2021-06-16 15:38
- Widening for clopidogrel BE study mittyri 2021-06-16 16:04
- Widening for clopidogrel BE study Loky do 2021-06-16 17:08
- Widening for clopidogrel BE study - cherry-picking? mittyri 2021-06-16 17:27
- Widening for clopidogrel BE study drgunasakaran1 2021-06-17 12:01
- Hypotheses Helmut 2021-06-19 12:32
- Hypotheses Loky do 2021-07-06 11:51
- ABEL ≠ RSABE Helmut 2021-07-06 16:17
- ABEL ≠ RSABE BEQool 2023-10-09 14:47
- power.TOST.sim and uncertainty mittyri 2023-10-11 12:42
- power.TOST.sim and uncertainty BEQool 2023-10-15 11:29
- power.TOST.sim and uncertainty mittyri 2023-10-20 21:47
- Distribution of PEs Helmut 2023-10-23 10:48
- Distribution of PEs BEQool 2023-10-23 19:55
- power.TOST.sim codemittyri 2023-10-31 15:40
- power.TOST.sim code BEQool 2023-11-02 11:22
- power.TOST.sim codemittyri 2023-10-31 15:40
- Distribution of PEs BEQool 2023-10-23 19:55
- Distribution of PEs Helmut 2023-10-23 10:48
- power.TOST.sim and uncertainty mittyri 2023-10-20 21:47
- power.TOST.sim and uncertainty BEQool 2023-10-15 11:29
- power.TOST.sim and uncertainty mittyri 2023-10-11 12:42
- ABEL ≠ RSABE BEQool 2023-10-09 14:47
- ABEL ≠ RSABE Helmut 2021-07-06 16:17
- Hypotheses Loky do 2021-07-06 11:51
- Widening for clopidogrel BE study Loky do 2021-06-16 17:08
- Widening for clopidogrel BE study mittyri 2021-06-16 16:04
- Widening for clopidogrel BE study Loky do 2021-06-16 15:38
- Outlier in fully replicate BE study drgunasakaran1 2021-06-16 08:59