Description Usage Arguments Details Value References Examples
Check if the argument is a scalar within specified range
Check if the argument is within specified range
Check if the argument is a scalar integer within specified range
Check if the argument is an integer vector within specified range
The computation involves a J1 multivariate normal integral of the conditional density of the ith subgroup statistic given that it was maximal among all subgroups:
1 2 3 4 5 6 7 8 9  scalarInRange(x, low = Inf, high = Inf)
numberInRange(x, low = Inf, high = Inf)
scalarIntegerInRange(x, low = Inf, high = Inf)
integerInRange(x, low = Inf, high = Inf)
den.vs(v, i, mu.prime, Sigma.prime, fut)

low 
the lower bound, default 
high 
the upper bound, default 
v 
the value of the statistic 
i 
the subgroup 
mu.prime 
the conditional mean vector of the distribution of
length J  1; needs to be multipled by the conditional
value, the parameter 
Sigma.prime 
the conditional covariance matrix of dimension J1 by J1 
fut 
the futility boundary, which is btilde for stages 1 and 2, but c for stage 3 
low 
the lower bound, default 
high 
the upper bound, default 
low 
the lower bound, default 
high 
the upper bound, default 
low 
the lower bound, default 
high 
the upper bound, default 
φ_i(v)(\int_0^v\int_0^v… \int_0^{\tilde{b}} φ_v(z_{i})dz_{i})
where z_{i} denotes all subgroups other than i.
TRUE
or FALSE
TRUE
or FALSE
TRUE
or FALSE
TRUE
or FALSE
the conditional probability
Adaptive Choice of Patient Subgroup for Comparing Two Treatments by Tze Leung Lai and Philip W. Lavori and Olivia YuehWen Liao. Contemporary Clinical Trials, Vol. 39, No. 2, pp 191200 (2014). http://www.sciencedirect.com/science/article/pii/S1551714414001311
1 2 3 4 5 6 7 8 9 10 11 12  ASSISTant:::scalarInRange(x = 10, low = 2) ## TRUE
ASSISTant:::scalarInRange(x = 10, high = 2) ## FALSE
ASSISTant:::numberInRange(x = 2:10, low = 2) ## TRUE
ASSISTant:::numberInRange(x = 10:15, high = 2) ## FALSE
ASSISTant:::integerInRange(x = 10, low = 2) ## TRUE
ASSISTant:::integerInRange(x = 10.5) ## FALSE
ASSISTant:::integerInRange(x = 2:10, low = 2) ## TRUE
ASSISTant:::integerInRange(x = 10:15, high = 2) ## FALSE
ASSISTant:::integerInRange(x = c(0.5, 1.5), high = 2) ## FALSE

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.