View source: R/SurrogateSeq.functions.R
bdr.gs.mc.fut | R Documentation |
Returns the boundaries for any group sequential test of the null vs. 2-sided alternative whose boundaries take the form of a single constant times a known weight vector, which is w.vec; allows for futility stopping. These include Pocock (w.vec=(1,1,..)), O'Brien-Fleming (w.vec=(sqrt(n.stg/1), sqrt(n.stg/2), ..., 1)), etc. It does this by returning quantiles of the sample paths of the (null) test statistic paths in mc.paths.
bdr.gs.mc.fut(c1 = NULL, c2 = NULL, pp = 0.4, n.stg, j.star = 1, alpha = 0.05,
alpha0 = (j.star/n.stg) * alpha, mc.paths, inf.fraction = (1:n.stg)/n.stg,
N.iter.max = 100, alpha.tol = 0.02 * alpha)
c1 |
c1 and c2 are the constants determining the outer boundary |
c2 |
see description in c1 |
pp |
power parameter for Wang-Tsiatis boundaries; default is 0.4 |
n.stg |
maximum number of analyses |
j.star |
earliest stage at which futility stopping is allowed. Should be <= n.stg-1 (there is already "futility stopping" at the n.stg-th stage anyway). Default is 1. |
alpha |
desired rejection probability of the test; default is 0.05 |
alpha0 |
the part of alpha that c1 is chosen to spend in first j.star stages; default is (j.star/n.stg) * alpha |
mc.paths |
matrix of sample paths, each row being a sample path, no. of columns is number of stages |
inf.fraction |
information fraction vector of the same length as n.stg which reflects the fraction of information at each analysis, should be positive, non-decreasing, and the last entry should be 1; default is (1:n.stg)/n.stg, user may want to specify a different vector for unequal time points |
N.iter.max |
max no. of iterations for finding c2 |
alpha.tol |
the tolerance for stopping search for c2 |
Returns a list:
a |
the futility boundary vectors |
b |
the null-rejection boundary vectors |
prej |
prob. of rejecting the null (at any stage) |
EM |
expected stopping stage number |
se.M |
standard error of stopping time |
c1 |
constants used in boundaries a, b |
c2 |
constants used in boundaries a, b |
Jay Bartroff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.