toer {basksim} | R Documentation |
Calculate the Type 1 Error Rate for a Basket Trial Design
Description
Calculate the Type 1 Error Rate for a Basket Trial Design
Usage
toer(
design,
n,
p1 = NULL,
lambda,
design_params = list(),
iter = 1000,
data = NULL,
...
)
Arguments
design |
An object created with one of the |
n |
The sample size per basket. |
p1 |
Probabilities under the alternative hypothesis. If |
lambda |
The posterior probability threshold. |
design_params |
A list of params that is specific to the class of
|
iter |
The number of iterations in the simulation. Is ignored if
|
data |
A data matrix with k column with the number of responses for each
basket. Has to be generated with |
... |
Further arguments. |
Value
A numeric value.
Examples
# Example for a basket trial with Fujikawa's Design
design <- setup_fujikawa(k = 3, p0 = 0.2)
toer(design = design, n = 20, p1 = c(0.2, 0.5, 0.5), lambda = 0.95,
design_params = list(epsilon = 2, tau = 0), iter = 1000)
[Package basksim version 1.0.0 Index]