Get two sample binary interim OC
get.ts.bin.int.oc(
a.con = 1,
b.con = 1,
a.trt = 1,
b.trt = 1,
Delta.tv = 0.3,
Delta.lrv = 0.2,
tau.tv = 0.1,
tau.lrv = 0.8,
tau.ng = 0.65,
go.thresh = 0.8,
ng.thresh = 0.8,
n.con = 40,
n.trt = 40,
n.int.c = c(10, 20, 30),
n.int.t = c(10, 20, 30),
DecisionTable = NULL,
runs = 500,
ControlRate = 0.2,
TreatmentEffect = seq(0, 0.8, 0.1),
include_nogo = TRUE
)
dataframe of simulation results with the following columns: * **Effect** the difference between the control Rate and treatment rate. (TreatmentRate = ControlRate + Effect) * **run** the grouping variable by run. * **assessment** the assessment in order, the last assessment is the final analysis results. * **TreatmentEffect** The true response rate for the treatment group. (ControlRate is the same for all runs, it is not in the output, only the function input. We may want to change this for completeness, or include it in Param) * **TotalResponse** for control (_C) and treatment(_T) respectively the total number of responses observed at that particular assessment. This is the cumulative sum over the assessments. * **Decision** The decision at the assessment given the total response up to that point. Note that the decision is calculated differently depending the assessment, the last assessment uses final assessment calculation while the earlier assessments use the interim assessment calculations.
alpha parameter for control
beta parameter for control
alpha parameter for treatment
beta parameter for treatment
Base TPP
min TPP
study-end threshold for Base TPP
study-end threshold for Min TPP
study-end threshold for NG
threshold for predictive probabilities at interim
threshold for predictive probabilities at interim
final sample size for control
final sample size for treatment
interim sample sizes for control
interim sample sizes for treatment
results from get.ts.bin.int.dec
number of simulation runs
assumed rate in the control group
vector of treatment effects relative to control group.
logical
my.ts.bin.int.oc <- get.ts.bin.int.oc()
head(my.ts.bin.int.oc)
Run the code above in your browser using DataLab