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

scalarInRangeR Documentation

Is a scalar quantity is a specified range?

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

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

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


ASSISTant documentation built on Dec. 2, 2022, 5:12 p.m.