setupOneStageBasket {baskexact} | R Documentation |
Setup OneStageBasket
Description
Creates an object of class OneStageBasket
.
Usage
setupOneStageBasket(k, shape1 = 1, shape2 = 1, p0)
Arguments
k |
The number of baskets. |
shape1 |
First common shape parameter of the beta prior. |
shape2 |
Second common shape parameter of the beta prior. |
p0 |
A common probability under the null hypothesis. |
Details
A OneStageBasket
object contains the most important
design features of a basket trial. Currently only common prior distributions
and a common null hypothesis are supported.
Value
An S4 object of class OneStageBasket
.
Examples
design <- setupOneStageBasket(k = 3, p0 = 0.2)
[Package baskexact version 1.0.1 Index]