select.rule {asd}R Documentation

Selection Rules for Interim Analysis in ASD

Description

Function select.rule provides a number of options for selecting treatments at an interim analysis in ASD.

Usage

select.rule(x, type = 0, epsilon = 1, thresh = 1)

Arguments

x

Vector of test statistics.

type

Decision rule type; 0, 1, 2, 3, 4, 5 or 6 (see below for details); default is 0.

epsilon

For type = 4, set epsilon criterion

thresh

For type = 6, set threshold criterion

Details

There are seven types of selction rule available:
(0) Select all treatments
(1) Select one treatment; largest value of x
(2) Select two treatments; two largest values of x
(3) Select three treatments; three largest values of x
(4) Epsilon rule; select all x within epsilon of maximum
(5) Randomly select one treatment
(6) Threshold rule; select all x larger than thresh

Value

select

Indicator vector that shows treatments selected (1) or not selected (0)

z

Vector of same length as select set to -Inf if not selected and 0 otherwise. For use with function dunnett.test

Author(s)

Nick Parsons (nick.parsons@warwick.ac.uk)

See Also

treatsel.sim, dunnett.test, hyp.test, combn.test, simeans.binormal

Examples


# select maximum treatment
select.rule(x=c(5.3,5.2,1.3,4.5,-1.3),type=4,epsilon=1)


[Package asd version 2.2 Index]