createTrial | R Documentation |
This function creates an object of class scenario_list
for a single trial outcome, which can subsequently be analyzed with other functions of
bhmbasket
, e.g. performAnalyses
createTrial(n_subjects, n_responders)
n_subjects |
A vector of integers for the number of subjects in the trial outcome |
n_responders |
A vector of integers for the number of responders in the trial outcome |
This function is a wrapper for simulateScenarios
with
simulateScenarios( n_subjects_list = list(n_subjects), response_rates_list = list(n_responders), n_trials = 1)
An object of class scenario_list
with the scenario data for a single trial outcome.
Stephan Wojciekowski
simulateScenarios
performAnalyses
trial_outcome <- createTrial(n_subjects = c(10, 20, 30, 40), n_responders = c( 1, 2, 3, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.