wl_simulator | R Documentation |
Creates a simulated waiting list comprising referral dates, and removal dates
wl_simulator(
start_date = NULL,
end_date = NULL,
demand = 10,
capacity = 11,
waiting_list = NULL,
withdrawal_prob = NA,
detailed_sim = FALSE
)
start_date |
date. The start date for the simulation. |
end_date |
date. The end date for the simulation. |
demand |
numeric. Weekly demand (i.e., typical referrals per week). |
capacity |
numeric. Weekly capacity (i.e., typical removals per week). |
waiting_list |
integer. The number of patients on the waiting list. |
withdrawal_prob |
numeric. Probability of a patient withdrawing. |
detailed_sim |
logical. If TRUE, simulation provides detailed output. |
data.frame. A df of simulated referrals and removals
over_capacity_simulation <-
wl_simulator("2024-01-01", "2024-03-31", 100, 110)
under_capacity_simulation <-
wl_simulator("2024-01-01", "2024-03-31", 100, 90)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.