Skip to contents

Set-up

Functions used for set-up for visit-based and bed-based simulations

import_file()
Import simulation excel file
calculate_mu_sigma()
Calculate mu and sigma
create_scenarios()
Create scenarios
sim_setup()
Set-up for simulation

Visit

Functions just used by visit-based simulation

dis_los()
Sample from length of stay (LOS) distribution
dis_los2()
Shorten length of stay
dis_init_slots()
Sample initial number of visits
dis_end_slots()
Sample end number of visits
create_patient_df()
Create patient dataframe
create_output_df()
Create output dataframe
create_wait_df()
Create wait time dataframe
create_summary_df()
Create summary dataframe
add_patient()
Add patient
run_visit_sim()
Run visit-based simulation
save_visit()
Save standard output from visit-based simulation
save_visit_stoch()
Save stochastic output from visit-based simulation