Nothing
#' @title Calculate Waiting List Pressure
#'
#' @description For a waiting list with target waiting time, the pressure on the
#' waiting list is twice the mean delay divided by the waiting list target.
#' The pressure of any given waiting list should be less than 1. If the
#' pressure is greater than 1 then the waiting list is most likely going to
#' miss its target. The waiting list pressure is calculated as follows:
#' pressure = 2 * mean_wait / target_wait.
#'
#' @param mean_wait Numeric value of target mean waiting time to achieve a given
#' target wait.
#' @param target_wait Numeric value of the number of weeks that has been set as
#' the target within which the patient should be seen.
#'
#' @return Numeric value of wait_pressure which is the waiting list pressure.
#'
#' @export
#'
#' @examples
#' calc_waiting_list_pressure(63, 52)
calc_waiting_list_pressure <- function(mean_wait, target_wait) {
check_class(mean_wait, target_wait)
wait_pressure <- 2 * mean_wait / target_wait
wait_pressure
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.