Skip to content

Commit eae18cb

Browse files
author
NightlordTW
committed
Display k per comparison
1 parent f030bae commit eae18cb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

R/helper.r

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ print.simss <- function(x, ...) {
2727
cat("Endpoints Tested:\n")
2828
for (i in 1:length(x$param$list_comparator)) {
2929
cat(paste0(" - ", paste(x$param$list_comparator[[i]], collapse = " vs. "), ": ",
30-
paste(x$param$list_y_comparator[[i]], collapse = ", "), "\n")) #AUCinf and Cmax (multiple co-primary endpoints, m = 2)\n"))
30+
paste(x$param$list_y_comparator[[i]], collapse = ", "), " (k = ",
31+
x$param.d$k[i], ")\n"))
3132
}
3233

33-
34-
3534
cat("-------------------------------------------------------------\n")
3635
print(output, row.names = FALSE) # Suppress row numbers
3736
#cat("-------------------------------------------------------------\n")

vignettes/sampleSize_parallel_2A3E.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Consider now we are interested in demonstrating equivalence for at least $k=1$ o
217217
ctype = "ROM", # Test type (Ratio of Means)
218218
vareq = TRUE, # Assume equal variances
219219
lognorm = TRUE, # Log-normal distribution assumption
220-
k = 1, # Reject at least one null hypothesis
220+
k = c("Comparison" = 1), # Reject at least one null hypothesis
221221
adjust = "bon", # Bonferroni adjustment method
222222
ncores = 1, # Number of cores for computation
223223
nsim = 1000, # Number of stochastic simulations
@@ -240,7 +240,7 @@ As mentioned in [the Introduction](../articles/intopkg.html), the Bonferroni cor
240240
ctype = "ROM", # Test type (Ratio of Means)
241241
vareq = TRUE, # Assume equal variances
242242
lognorm = TRUE, # Log-normal distribution assumption
243-
k = 1, # Reject at least one null hypothesis
243+
k = c("Comparison" = 1), # Reject at least one null hypothesis
244244
adjust = "k", # Adjustment method
245245
ncores = 1, # Number of cores for computation
246246
nsim = 1000, # Number of stochastic simulations
@@ -267,7 +267,7 @@ In this example, the sequential adjustment can be implemented by setting the fun
267267
ctype = "ROM", # Test type (Ratio of Means)
268268
vareq = TRUE, # Assume equal variances
269269
lognorm = TRUE, # Log-normal distribution assumption
270-
k = 1, # Reject at least one null hypothesis
270+
k = c("Comparison" = 1), # Reject at least one null hypothesis
271271
adjust = "seq", # Sequential adjustment method
272272
type_y = c("AUCinf" = 1, "AUClast" = 2, "Cmax" = 2), # Endpoint types
273273
ncores = 1, # Number of cores for computation

0 commit comments

Comments
 (0)