ASSISTant-internal: Is a scalar quantity is a specified range?

Description Usage Arguments Details Value References Examples

Description

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 J-1 multivariate normal integral of the conditional density of the i-th subgroup statistic given that it was maximal among all subgroups:

Usage

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)

Arguments

low

the lower bound, default -Inf

high

the upper bound, default Inf

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 v.

Sigma.prime

the conditional covariance matrix of dimension J-1 by J-1

fut

the futility boundary, which is btilde for stages 1 and 2, but c for stage 3

low

the lower bound, default -Inf

high

the upper bound, default Inf

low

the lower bound, default -Inf

high

the upper bound, default Inf

low

the lower bound, default -Inf

high

the upper bound, default Inf

Details

φ_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.

Value

TRUE or FALSE

TRUE or FALSE

TRUE or FALSE

TRUE or FALSE

the conditional probability

References

Adaptive Choice of Patient Subgroup for Comparing Two Treatments by Tze Leung Lai and Philip W. Lavori and Olivia Yueh-Wen Liao. Contemporary Clinical Trials, Vol. 39, No. 2, pp 191-200 (2014). http://www.sciencedirect.com/science/article/pii/S1551714414001311

Examples

 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

bnaras/ASSISTant documentation built on Nov. 23, 2019, 6:20 p.m.