-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalc_target_queue_size.Rd
executable file
·44 lines (37 loc) · 1.37 KB
/
calc_target_queue_size.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
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_target_queue_size.R
\name{calc_target_queue_size}
\alias{calc_target_queue_size}
\title{Target Queue Size}
\usage{
calc_target_queue_size(demand, target_wait, factor = 4)
}
\arguments{
\item{demand}{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.}
\item{target_wait}{Numeric value of number of weeks that has been set as the
target within which the patient should be seen.}
\item{factor}{Numeric factor used in average wait calculation
\itemize{
\item to get a quarter of the target use factor=4
\item to get one sixth of the target use factor = 6 etc. Defaults to 4.
}}
}
\value{
Numeric target queue length.
}
\description{
Uses Little's Law to calculate the target queue size to achieve
a target waiting time as a function of observed demand, target wait and a
variability factor used in the target mean waiting time calculation.
Target Queue Size = Demand * Target Wait / 4.
The average wait should sit somewhere between
target_wait/factor=6 < Average Waiting Time < target_wait/factor=4
The factor defaults to 4.
Only applicable when Capacity > Demand.
}
\examples{
# If demand is 30 patients per week and the target wait is 52 weeks, then the
# Target queue size = 30 * 52/4 = 390 patients.
calc_target_queue_size(30, 52, 4)
}