Description Usage Arguments Value Author(s) References
View source: R/gs_spending_bound.r
Computes one bound at a time based on spending under given distributional assumptions.
While user specifies gs_spending_bound()
for use with other functions,
it is really not intended for use on its own.
Most important user specifications are made through a list provided to functions using gs_spending_bound()
.
Function uses numerical integration and Newton-Raphson iteration to derive an individual bound for a group sequential
design that satisfies a targeted boundary crossing probability.
Algorithm has been modified from Chapter 19 of Jennison and Turnbull (2000).
1 2 3 4 5 6 7 8 9 10 11 |
k |
analysis for which bound is to be computed |
par |
a list with the following items: sf (class spending function), timing (a vector containing values at which spending function is to be evaluated), total_spend (total spend), param (any parameters needed by the spending function) |
hgm1 |
subdensity grid from h1 (k=2) or hupdate (k>2) for analysis k-1; if k=1, this is not used and may be NULL |
theta |
natural parameter used for lower bound only spending; represents average drift at each time of analysis at least up to analysis k; upper bound spending is always set under null hypothesis (theta = 0) |
info |
statistical information at all analyses, at least up to analysis k |
efficacy |
TRUE (default) for efficacy bound, FALSE otherwise |
test_bound |
a logical vector of the same length as |
r |
Integer, at least 2; default of 18 recommended by Jennison and Turnbull |
tol |
Tolerance parameter for convergence (on Z-scale) |
returns a numeric bound (possibly infinite) or, upon failure, generates an error message.
Keaven Anderson keaven\_anderson@merck.
Jennison C and Turnbull BW (2000), Group Sequential Methods with Applications to Clinical Trials. Boca Raton: Chapman and Hall.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.