View source: R/getClinicalTrials.R
getOneClinicalTrial | R Documentation |
This function creates a data set with a single simulated oncology clinical trial with one row per transition based on an illness-death model. Studies with an arbitrary number of treatment arms are possible.
getOneClinicalTrial(
nPat,
transitionByArm,
dropout = list(rate = 0, time = 12),
accrual = list(param = "time", value = 0)
)
nPat |
( |
transitionByArm |
( |
dropout |
dropout ( |
accrual |
accrual ( |
This returns a data frame with one simulated clinical trial and multiple treatment arms.
See getSimulatedData()
for the explanation of the columns. The column trt
contains the treatment indicator.
This is a helper function of getClinicalTrials()
.
transition1 <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
transition2 <- exponential_transition(h01 = 1, h02 = 1.3, h12 = 1.7)
transition3 <- exponential_transition(h01 = 1.1, h02 = 1, h12 = 1.5)
getOneClinicalTrial(
nPat = c(30, 20, 30), transitionByArm = list(transition1, transition2, transition3),
dropout = list(rate = 0, time = 12),
accrual = list(param = "time", value = 0)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.