View source: R/generate.data.R
generate.data | R Documentation |
Generate Data for A Basket Trial Design
generate.data(N, ORRs, ntrial = 10000, seed = 987897)
N |
a matrix with |
ORRs |
a matrix with |
ntrial |
the total number of trials simulated. |
seed |
random seed for reproducibility. |
It returns a list including data
, N
, and ORRs
, where data
is an
array with dim=c(nS, ntrial, B, stage)
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.