Description Usage Arguments Details Value Author(s) See Also Examples
Function select.rule
provides a number of options for selecting treatments at an interim analysis in ASD.
1 | select.rule(x, type = 0, epsilon = 1, thresh = 1)
|
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 |
thresh |
For |
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
select |
Indicator vector that shows treatments selected (1) or not selected (0) |
z |
Vector of same length as |
Nick Parsons (nick.parsons@warwick.ac.uk)
treatsel.sim
, dunnett.test
, hyp.test
, combn.test
, simeans.binormal
1 2 | # select maximum treatment
select.rule(x=c(5.3,5.2,1.3,4.5,-1.3),type=4,epsilon=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.