Simple simulator to create a waiting list
wl_simulator.Rd
Creates a simulated waiting list comprising referral dates, and removal dates
Usage
wl_simulator(
start_date,
end_date,
demand,
capacity,
waiting_list = NULL,
referral_index = 1
)
Arguments
- start_date
date. The start date for the simulation
- end_date
date. The end date for the simulation
- demand
numeric. Weekly demand (ie. typical referrals per week)
- capacity
numeric. Weekly capacity (ie. typical removals per week)
- waiting_list
integer. The number of patients on the waiting list
- referral_index
integer. The column number in the waiting_list which contains the referral dates