# two-arm six-stage trial (PRESTO-REACH) with binary outcome measure
parlist <- getparlist(
looks=seq(500,1000,100),
perpetual=FALSE,
alloc.ratio=c(1,1),
num.per.block=c(1,1),
final.visit=0,
as.type="asOF",
multiarm.mode="CONFIDENCE-BASED",
lmb.threshold=0.95,
lmb.conf.thresh=0.9,
outcome.type='BINARY',
estimator.type='odds ratio',
resprate=c(0.3,0.5),
ppm=rep(15, 300))
# two-arm three-stage trial with 16-point ordinal outcome
resprate <- list(
ctrl = rep(1/16, 16),
trmt=c(
0.08119658, 0.07802130, 0.07502870,0.07220504, 0.06953783,0.06701574,
0.06462841, 0.06236641, 0.06022113,0.05818467, 0.05624978, 0.05440984,
0.05265872, 0.05099079,0.04940088, 0.04788419)
)
# create a list of input parameters
inputs <- list(
lmb.threshold = 1.10,
as.type = 'asOF',
outcome.type = "ORDINAL",
multiarm.mode='CONFIDENCE-BASED',
num.per.block = c(1,1),
final.visit = 180,
ppm = rep(20, 300),
perpetual=FALSE,
resprate=resprate,
looks=c(500,1000,1500)
)
# pass parameters in through "inputs"
parlist <- do.call("getparlist", inputs)
Run the code above in your browser using DataLab