getOneClinicalTrial {simIDM} | R Documentation |
Simulation of a Single Oncology Clinical Trial
Description
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.
Usage
getOneClinicalTrial(
nPat,
transitionByArm,
dropout = list(rate = 0, time = 12),
accrual = list(param = "time", value = 0)
)
Arguments
nPat |
( |
transitionByArm |
( |
dropout |
dropout ( |
accrual |
accrual ( |
Value
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()
.
Examples
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)
)