magnusson_turnbull {GSED} | R Documentation |
Application of GSED on data
Description
magnusson_turnbull
is used apply GSED design, selection or evaluation at each stage, on data.
Usage
magnusson_turnbull(stage_cur, keep=NA, N_subsets, Y, I, l, u, ordering,
increasing_theta=FALSE)
Arguments
stage_cur |
Integer representing the current stage. 0 represents selection at stage 1, 1 represents evaluation at stage 1, while k (>1) represents evaluation at stage k. |
keep |
Vector of indices of selected subgroups if selection at stage 1 is already performed. Values must be between 1 and |
N_subsets |
Integer representing the number of possible subgroups. |
Y |
Efficient score test statistics. For |
I |
Observed Fisher information. For |
l |
Vector containing the lower boundaries for stagewise decisions. |
u |
Vector containing the upper boundaries for stagewise decisions. |
ordering |
Boolean indicating if the subgroups (theta) are ordered. |
increasing_theta |
Boolean indicating if greater values of theta parameters represent better treatment effects. The default value is set at FALSE. |
Value
An list is returned, consisting of:
Rejection |
Interger with value 1 if the decision is to reject the null hypothesis, 0 otherwise. |
Acceptation |
Interger with value 1 if the decision is to accept the null hypothesis, 0 otherwise. |
Keep |
Vector of indices of selected subgroups (between 1 and |
Author(s)
Marie-Karelle Riviere-Jourdan eldamjh@gmail.com
References
Baldur P. Magnusson and Bruce W. Turnbull. Group sequential enrichment design incorporating subgroup selection. Statistics in Medicine, 2013. <doi:10.1002/sim.5738>
Examples
magnusson_turnbull(stage_cur=0, keep=NA, N_subsets=3, Y=c(-10.71,12.84,19.06),
I=c(480,144,176), l=c(0.7962,2.5204), u=c(2.7625,2.5204), ordering=FALSE)
magnusson_turnbull(stage_cur=2, keep=c(2,3), N_subsets=3, Y=135.57,
I=1120, l=c(0.7962,2.5204), u=c(2.7625,2.5204), ordering=FALSE)