-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwl_simulator.Rd
executable file
·43 lines (37 loc) · 1.04 KB
/
wl_simulator.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wl_simulator.R
\name{wl_simulator}
\alias{wl_simulator}
\title{Simple simulator to create a waiting list}
\usage{
wl_simulator(
start_date = NULL,
end_date = NULL,
demand = 10,
capacity = 11,
waiting_list = NULL,
withdrawal_prob = NA,
detailed_sim = FALSE
)
}
\arguments{
\item{start_date}{date. The start date for the simulation}
\item{end_date}{date. The end date for the simulation}
\item{demand}{numeric. Weekly demand (ie. typical referrals per week)}
\item{capacity}{numeric. Weekly capacity (ie. typical removals per week)}
\item{waiting_list}{integer. The number of patients on the waiting list
contains the referral dates}
}
\value{
dataframe. A df of simulated referrals and removals
}
\description{
Creates a simulated waiting list comprising referral dates,
and removal dates
}
\examples{
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)
}