From 5fc08136acae15bf4bea90fc47e3a2bf62ecd867 Mon Sep 17 00:00:00 2001 From: PeterSNHS Date: Thu, 14 Dec 2023 17:47:04 +0000 Subject: [PATCH] Added formal definition of F. --- R/target_capacity.R | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/R/target_capacity.R b/R/target_capacity.R index 7c73a55..0c144d6 100644 --- a/R/target_capacity.R +++ b/R/target_capacity.R @@ -3,9 +3,12 @@ #' @description #' Calculates the target capacity to achieve a given target waiting time as a function of observed demand, target waiting time and a variability of demand parameter F. #' -#' F defaults to 1. -#' #' Target Capacity = Demand + 2 * ( 1 + 4 * F ) / Target Wait +#' +#' where F = V/C * (D/C)^2 +#' where C is the current number of operations per week; V is the current variance in the number of operations per week; D is the observed demand. +#' +#' F defaults to 1. #' #' @param 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. #' @param target_wait Numeric value of number of weeks that has been set as the target within which the patient should be seen.