scenarios_list <- simulateScenarios(
n_subjects_list = list(c(10, 20, 30)),
response_rates_list = list(rep(0.9, 3)),
n_trials = 10)
analysis_list <- performAnalyses(
scenario_list = scenarios_list,
target_rates = rep(0.5, 3),
n_mcmc_iterations = 100)
go_decisions_list <- getGoDecisions(
analyses_list = analysis_list,
cohort_names = c("p_1", "p_2", "p_3",
"p_1", "p_2", "p_3"),
evidence_levels = c(0.5, 0.5, 0.5,
0.95, 0.95, 0.95),
boundary_rules = quote(c(x[1] > 0.8 & x[4] > 0.4,
x[2] > 0.8 & x[5] > 0.4,
x[3] > 0.8 & x[6] > 0.4)))
nogo_decisions <- negateGoDecisions(getGoDecisions(
analyses_list = analysis_list,
cohort_names = c("p_1", "p_2", "p_3",
"p_1", "p_2", "p_3"),
evidence_levels = c(0.5, 0.5, 0.5,
0.95, 0.95, 0.95),
boundary_rules = quote(c(x[1] > 0.8 | x[4] > 0.4,
x[2] > 0.8 | x[5] > 0.4,
x[3] > 0.8 | x[6] > 0.4))))
getGoProbabilities(go_decisions_list, nogo_decisions)
Run the code above in your browser using DataLab