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
Will attempt an AI version that does multiple calls to gsDesign and assembles a summary table with multiple efficacy boundaries. At most a single futility bound will be provided except for 2-sided designs.
Rename current gsBoundSummary() function as gsBoundSummary0() and make the latter an internal function
Argument list for new gsBoundSummary will be the same as the current version, but adding a vector a vector of alpha-levels in a new argument called alpha
Check that input alpha is NULL or that levels are > 0 and < 1 - x$beta.
Call out <- gsBoundSummary0(x) to get a starting table.
If input alpha = NULL or test.type in (3, 5), return this table; i.e., behavior remains unchanged from old gsBoundSummary().
For test.type in (3, 5) a message for that non-null alpha is not implemented.
If alpha is non-NULL and test.type not in (3, 5), continue.
Column labels will change as specified below.
For non-null alpha and x$test.type in (1, 3, 5) the futility bound and its label (Futility) remains unchanged from what is returned in step 4.
For each new value in alphaNew in alpha (don’t repeat the level in x$alpha) and test.type in (4, 6), run
y <- gsDesign(alpha = alphaNew, k = x$k, test.type = 1, alpha = alphaNew, beta = x$beta, astar = x$astar, delta = x$delta,
n.fix = NULL, timing = NULL, sfu = x$upper$sf, sfupar = x$upper$param, sfl = x$lower$sf, sflpar = x$lower$param,
tol = x$tol, r = x$r, n.I = x$n.I, maxn.IPlan = x$n.I[x$k], delta1 = x$delta1, delta0 = x$delta0, overrun = x$overrun,
usTime = x$usTime, lsTime = x$lsTime
)
Run yout <- gsBoundSummary0(x = y,…) where … represents other arguments to gsBoundSummary() that are input.
Paste Efficacy column from yout after current efficacy columns in out.
When finished with all alpha-levels (including original) relabel “Efficacy” columns to paste(“Efficacy, alpha = ”, alphaNew).
For x$test.type=2 (2-sided symmetric designs) futility bounds are recomputed with gsDesign call for each alpha-level. These will be pasted to right of the original Futility column from gsBoundSummary0() call
If new Futility columns added (test.type = 2), relabel original and new “Futility” columns with paste(“Futility, alpha = “, alphaNew)
Output completed data frame.
The text was updated successfully, but these errors were encountered:
Will attempt an AI version that does multiple calls to gsDesign and assembles a summary table with multiple efficacy boundaries. At most a single futility bound will be provided except for 2-sided designs.
y <- gsDesign(alpha = alphaNew, k = x$k, test.type = 1, alpha = alphaNew, beta = x$beta, astar = x$astar, delta = x$delta,
n.fix = NULL, timing = NULL, sfu = x$upper$sf, sfupar = x$upper$param, sfl = x$lower$sf, sflpar = x$lower$param,
tol = x$tol, r = x$r, n.I = x$n.I, maxn.IPlan = x$n.I[x$k], delta1 = x$delta1, delta0 = x$delta0, overrun = x$overrun,
usTime = x$usTime, lsTime = x$lsTime
)
The text was updated successfully, but these errors were encountered: