View source: R/calc_target_queue_size.R
calc_target_queue_size | R Documentation |
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.
calc_target_queue_size(demand, target_wait, factor = 4)
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. |
target_wait |
Numeric value of number of weeks that has been set as the target within which the patient should be seen. |
factor |
Numeric factor used in average wait calculation
|
Numeric target queue length.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.