run_cp_bootstrap_large_DB: Run multiple bootstrapped change_point simulations (in...

Description Usage Arguments

View source: R/sim_funcs_large_db.R

Description

Run multiple bootstrapped change_point simulations (in parallel) for large databases

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
run_cp_bootstrap_large_DB(
  sim_data,
  sim_version = "visits",
  boot_trials = 100,
  n_sim_trials = 50,
  new_draw_weight = 0,
  num_cores = NULL,
  sim_duartion_for_regression = FALSE,
  no_bootstrapping = FALSE
)

Arguments

sim_data

A dataset containing the time_map, miss bins and other parameters used for the simulation. This dataset should be created using the 'prep_sim_data()' function

sim_version

The simulation version to run. Options include "visits" (default) or "patients"

boot_trials

The number of bootstrapped trials to run (default is 100)

n_sim_trials

The number of trials to run in simulation of miss visits (default is 50)

new_draw_weight

A weighing parameter used to assign preference to drawing previously "missed" patients at each time step. A value of 0 applies strict preference to drawing patients who have been assigned to miss in prior time steps, while a value 0.5 applies equal weight to patients who have and have not been previously selected

num_cores

The number of worker cores to use. If not specified will determined the number of cores based on the which ever is the smallest value between number of boot_trials or detected number of cores - 1

no_bootstrapping

Specifies whether you want to run the simulations without bootstrapping the original dataset


aarmiller/delayDX documentation built on July 11, 2021, 4:01 p.m.