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
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ If correlations differ between endpoints, they can be specified individually usi
200
200
201
201
Referring to the output above, the required sample size for this setting is `r N_mult_corr$response$n_total`. This is `r N_ss$response$n_total - N_mult_corr$response$n_total` fewer patients than the scenario where the endpoints are assumed to be uncorrelated.
202
202
203
-
# Simultaneous Testing of Independent Primary Endpoints
203
+
# Simultaneous Testing of Correlated Primary Endpoints
204
204
Consider now we are interested in demonstrating equivalence for at least $k=1$ of the $m=3$ primary endpoints. Unlike the previous cases, where equivalence was required for all endpoints, this setting necessitates an adjustment for multiplicity to control the family-wise error rate.
205
205
206
206
```{r}
@@ -248,4 +248,35 @@ As mentioned in [the Introduction](../articles/intopkg.html), the Bonferroni cor
248
248
))
249
249
```
250
250
251
+
A more advanced testing approach involves Sequential Adjustment, where the significance level is adjusted separately for groups of endpoints (primary and secondary). A Bonferroni adjustment is applied to the primary endpoints based on their number. If the null hypothesis for the primary endpoints is rejected, testing proceeds sequentially to the secondary endpoints, which are also Bonferroni-adjusted based on the number of secondary endpoints.
252
+
253
+
In this example, the sequential adjustment can be implemented by setting the function argument to `adjust = "seq"` and specifying the type of each endpoint through the `type_y` parameter. For instance, we define "AUCinf" as a primary endpoint, while "AUClast" and "Cmax" are designated as secondary endpoints.
254
+
255
+
256
+
```{r}
257
+
(N_mp_seq <- sampleSize(
258
+
power = 0.9, # Target power
259
+
alpha = 0.05, # Significance level
260
+
mu_list = mu_list, # List of means
261
+
sigma_list = sigma_list, # List of standard deviations
0 commit comments