Skip to content

Commit e93b979

Browse files
committed
Specify comparison
1 parent ae76632 commit e93b979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vignettes/sampleSize_parallel.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ lequi_upper <- setNames(rep(log(1.25), 5), paste0("y", 1:5))
5959
ss <- sampleSize(power = 0.8, alpha = 0.05,
6060
mu_list = list("R" = mu_r, "T" = mu_t),
6161
sigma_list = list("R" = sigma, "T" = sigma),
62-
list_comparator = list(c("R", "T")),
62+
list_comparator = list("T_vs_R" = c("R", "T")),
6363
list_lequi.tol = list("T_vs_R" = lequi_lower),
6464
list_uequi.tol = list("T_vs_R" = lequi_upper),
6565
dtype = "parallel", ctype = "DOM", lognorm = FALSE,
@@ -99,6 +99,7 @@ ss <- sampleSize(power = 0.8, alpha = 0.05,
9999
mu_list = list("R" = mu_r, "T" = mu_t),
100100
sigma_list = list("R" = sigma, "T" = sigma),
101101
rho = 0.8, # high correlation between the endpoints
102+
list_comparator = list("T_vs_R" = c("R", "T")),
102103
list_lequi.tol = list("T_vs_R" = lequi_lower),
103104
list_uequi.tol = list("T_vs_R" = lequi_upper),
104105
dtype = "parallel", ctype = "DOM", lognorm = FALSE,

0 commit comments

Comments
 (0)