a1Table {adaptTest} | R Documentation |
Function to produce tables of alpha1
Description
This function produces tables of for a grid of different choices of
and
.
Usage
a1Table(typ, a = NA, a0 = NA, Pocock = FALSE, round = FALSE)
Arguments
typ |
type of test: |
a |
vector of different choices of |
a0 |
vector of different choices of |
Pocock |
logical determining whether the "Pocock-type" should be calculated or the full level should be applied after the second stage (see details; default: full level after second stage). |
round |
rounding specification, logical or integer (see details; default: no rounding) |
Details
This function produces tables of on a grid spanned by the vectors
a
and a0
(i.e., and
). This is done either for the "Pocock-type" (i.e., under the condition
:
Pocock = TRUE
) or using the full level after the second stage (:
Pocock = FALSE
(the default)). The function a1Table
can be a convenient shortcut for a repeated use of tsT
; see this latter function for further details.
The result is rounded to round
digits after the comma (round = TRUE
rounds to 1 digit; round = FALSE
and round = 0
prevent rounding).
Value
a1Table
returns a matrix of values, with the corresponding
and
values being displayed as dimnames.
Author(s)
Marc Vandemeulebroecke
References
Bauer, P., Koehne, K. (1994). Evaluation of experiments with adaptive interim analyses. Biometrics 50, 1029-1041.
Lehmacher, W., Wassmer, G. (1999). Adaptive sample size calculations in group sequential trials. Biometrics 55, 1286-1290.
Vandemeulebroecke, M. (2006). An investigation of two-stage tests. Statistica Sinica 16, 933-951.
See Also
adaptTest
package description, tsT
Examples
## Produce basic reference tables for the test by Vandemeulebroecke (2006)
alpha <- c(0.1, 0.05, 0.025, 0.01)
alpha0 <- 1:10/10
a1Table(typ="v", a=alpha, a0=alpha0, Pocock=FALSE)
a1Table(typ="v", a=alpha, a0=alpha0, Pocock=TRUE)