RunSim.Rd
Run the simulation
RunSim(
trt_list = c("int", "noint"),
common_all_inputs = NULL,
common_pt_inputs = NULL,
unique_pt_inputs = NULL,
init_event_list = NULL,
evt_react_list = evt_react_list,
util_ongoing_list = NULL,
util_instant_list = NULL,
util_cycle_list = NULL,
cost_ongoing_list = NULL,
cost_instant_list = NULL,
cost_cycle_list = NULL,
npats = 500,
n_sim = 1,
psa_bool = NULL,
ncores = 1,
drc = 0.035,
drq = 0.035,
input_out = NULL,
ipd = TRUE,
debug = FALSE
)
A vector of the names of the interventions evaluated in the simulation
A list of inputs common across patients that do not change within a simulation
A list of inputs that change across patients but are not affected by the intervention
A list of inputs that change across each intervention
A list of initial events and event times. If no initial events are given, a "Start" event at time 0 is created automatically
A list of event reactions
A list of utilities that are accrued at an ongoing basis
A list of utilities that are accrued instantaneously at an event
A list of utilities that are accrued in cycles
A list of costs that are accrued at an ongoing basis
A list of costs that are accrued instantaneously at an event
A list of costs that are accrued in cycles
The number of patients to be simulated
The number of simulations to run per patient
A boolean to determine if PSA should be conducted. If n_sim > 1 and psa_bool = FALSE, the differences between simulations will be due to sampling
The number of cores to use for parallel computing
The discount rate for costs
The discount rate for LYs/QALYs
A vector of variables to be returned in the output data frame
A boolean to determine if individual patient data should be returned. If set to false, only the main aggregated outputs will be returned (slightly speeds up code)
A boolean to determine if non-parallel RunEngine function should be used, which facilitates debugging. Setting this option to true will ignore the value of ncores
A list of data frames with the simulation results
if (FALSE) {
RunSim(trt_list=c("int","noint"),
common_all_inputs = common_all_inputs,
common_pt_inputs = common_pt_inputs,
unique_pt_inputs = unique_pt_inputs,
init_event_list = init_event_list,
evt_react_list = evt_react_list,
util_ongoing_list = util_ongoing_list,
util_instant_list = util_instant_list,
cost_ongoing_list = cost_ongoing_list,
cost_instant_list = cost_instant_list,
npats = 500,
n_sim = 1,
psa_bool = FALSE,
ncores = 1,
drc = 0.035,
drq = 0.035,
ipd = TRUE)
}