You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/sampleSize_parallel_2A3E.Rmd
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ The null hypothesis ($H_0$) is rejected if, and only if, all null hypotheses ass
89
89
If each pharmacokinetic (PK) measure is tested independently, the following sample sizes would be required for each endpoint to achieve a 5\% significance level:
90
90
91
91
```{r}
92
+
library(SimTOST)
93
+
92
94
# Sample size calculation for AUCinf
93
95
(sim_AUCinf <- sampleSize(
94
96
power = 0.9, # Target power
@@ -97,15 +99,29 @@ If each pharmacokinetic (PK) measure is tested independently, the following samp
If we were to test each PK measure independently, we would find a total sample size of $N=$ `r sim_AUCinf$sim_AUCinf$response$n_total` for AUCinf, $N=56$ for AUClast, and $N=20$ for Cmax. This means that we would have to enroll `r sim_AUCinf$sim_AUCinf$response$n_total` + $56+20 = 152$ patients in order to reject $H_0$ at a significance level of 5\%.
124
+
If we were to test each PK measure independently, we would find a total sample size of `r sim_AUCinf$response$n_total` for AUCinf, `r sim_AUClast$response$n_total` for AUClast, and $N=20$ for Cmax. This means that we would have to enroll `r sim_AUCinf$response$n_total` + `r sim_AUClast$response$n_total` +$20 = 152$ patients in order to reject $H_0$ at a significance level of 5\%.
We then pass these values into the [sampleSize()](../reference/sampleSize.html) function to calculate the required sample size for multiple comparisons.
0 commit comments