Description Usage Arguments Value
View source: R/optimizeTrial.r
optimizeTrial
requires users to input an objective function to evaluate the trial design in each case. min_E_SS_power_constraints
is a pre-set option for an objective function based on expected sample size. min_E_dur_power_constraints
is a pre-set option for an objective function based on expected duration. Both functions' output a list including a penalized objective function value. Any custom objective function supplied to optimizeTrial
must be able to run in the context of the get_case_perf_obj
function, and give output in the same format as that of the functions below.
1 2 3 |
... |
for internal use. |
a list containing
base |
the expected sample size, or expected duration |
penalized |
the value of |
power_diffs |
a matrix showing the difference between achieved power and required power for each case, and each constraint. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.