View source: R/create_waiting_list.R
create_waiting_list | R Documentation |
Creates a waiting list using the parameters specified
create_waiting_list(
n,
mean_arrival_rate,
mean_wait,
start_date = Sys.Date(),
limit_removals = TRUE,
sd = 0,
rott = 0,
...
)
n |
Numeric value of rate of demand in same units as target wait
|
mean_arrival_rate |
Numeric value of mean daily arrival rate. |
mean_wait |
Numeric value of mean wait time for treatment/on waiting list. |
start_date |
Character value of date from which to start generated waiting list. |
limit_removals |
Defaults to TRUE |
sd |
Numeric value, standard deviation. Defaults to 0. |
rott |
Numeric value, proportion of referrals to be randomly flagged as ROTT. Defaults to 0. |
... |
Container for the list |
A tibble of a random generated list of patients with addition_date, removal_date, wait_length and rott status for each patient
create_waiting_list(366, 50, 21, "2024-01-01", 10, 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.