get_case_perf_obj: Get trial performance for each case.

Description Usage Arguments Details Value

View source: R/optimizeTrial.r

Description

This function is mostly for internal use within optimizeTrial. It first gets trial performance for each case. Once the characteristics of the trial in each case are simulated, the objective function can be calculated.

Usage

1
2
get_case_perf_obj(base_args, cases, objective_fun, trial_method,
  return_entries = c("performance"), ...)

Arguments

base_args

the trial design and other inputs to functions determined by trial_method. This corresponds to the combined list of args_list_init and args_list_fixed from optimizeTrial.

cases

analogous to the input for optimizeTrial.

objective_fun

a function to evaluate the design, see optimizeTrial.

trial_method

either 'MB' or 'cov', depending on the type of design being used. See optimizeTrial

return_entries

a list of strings telling which elements of the returned value from objective_fun should be stored. Set to 'all' to return all elements from functions determined by trial_method.

...

is passed to objective_fun

Details

See argument definitions in optimizeTrial for more information.

Value

A list with elements

cases

a modified version of cases in which each element has been appended with descriptive metrics from functions determined by trial_method.

obj

The output from objective_fun


aaronjfisher/designOptim documentation built on April 3, 2018, 8:25 p.m.