generate.data {BasketTrial} | R Documentation |
Generate Data for A Basket Trial Design
Description
Generate Data for A Basket Trial Design
Usage
generate.data(N, ORRs, ntrial = 10000, seed = 987897)
Arguments
N |
a matrix with |
ORRs |
a matrix with |
ntrial |
the total number of trials simulated. |
seed |
random seed for reproducibility. |
Value
It returns a list including data
, N
, and ORRs
, where data
is an
array with dim=c(nS, ntrial, B, stage)
.
Examples
N <- rbind(
c(10, 25),
c(10, 25),
c(10, 25)) # interim sample size and total sample size for each indication
scenarios <- rbind( c(0.15, 0.15, 0.15), c(0.3, 0.3, 0.3) )
res <- generate.data(N = N, ORRs = scenarios, ntrial = 20, seed = 2024)
[Package BasketTrial version 0.1.0 Index]