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,
...
)
A tibble with randomly generated patient records and the following columns:
Integer. Unique identifier for the patient.
Date. The date the patient was added to the waiting list.
Date. The date the patient was removed from the waiting list.
Numeric. Number of days between the addition and removal dates.
Logical. Whether the removal was for reasons other than treatment (ROTT).
Additional columns may be included if supplied via ...
,
where named vectors (e.g., patient-level variables) of compatible length
are merged into the output tibble.
Numeric value of rate of demand in same units as target wait
e.g. if target wait is weeks, then demand in units of patients/week.
Numeric value of mean daily arrival rate.
Numeric value of mean wait time for treatment/on waiting list.
Character value of date from which to start generated waiting list.
Defaults to TRUE
Numeric value, standard deviation. Defaults to 0.
Numeric value, proportion of referrals to be randomly flagged as ROTT. Defaults to 0.
Container for the list
create_waiting_list(366, 50, 21, "2024-01-01", 10, 0.1)
Run the code above in your browser using DataLab