scenarios_list <- simulateScenarios(
n_subjects_list = list(c(10, 20, 30)),
response_rates_list = list(c(0.1, 0.2, 3)),
n_trials = 10)
analyses_list <- performAnalyses(
scenario_list = scenarios_list,
target_rates = c(0.1, 0.1, 0.1),
calc_differences = matrix(c(3, 2, 2, 1), ncol = 2),
n_mcmc_iterations = 100)
getEstimates(analyses_list)
getEstimates(analyses_list = analyses_list,
add_parameters = c("mu", "tau", "w_1", "w_2", "w_3"),
point_estimator = "mean",
alpha_level = 0.1)
outcome <- createTrial(
n_subjects = c(10, 20, 30),
n_responders = c( 1, 2, 3))
outcome_analysis <- performAnalyses(
scenario_list = outcome,
target_rates = c(0.1, 0.1, 0.1),
n_mcmc_iterations = 100)
getEstimates(outcome_analysis)
getEstimates(analyses_list = outcome_analysis,
add_parameters = c("mu", "w_1", "w_2", "w_3"))
Run the code above in your browser using DataLab