nhs-r-community / NHSRwaitinglist

R-package to implement the waiting list management approach described in this paper by Fong et al: https://www.medrxiv.org/content/10.1101/2022.08.23.22279117v1.full-text
https://nhs-r-community.github.io/NHSRwaitinglist/
Other
15 stars 0 forks source link

possible calculation discrepancy in wl_stats? #80

Closed ThomUK closed 2 weeks ago

ThomUK commented 3 months ago

The wl_stats function defines pressure manually as: "pressure" = mean_wait * 4 / target_wait

The calc_waiting_list_pressure function defines it as: wait_pressure <- 2 * mean_wait / target_wait

We need to find which is right, and ideally use the calc_waiting_list_pressure function within the wl_stats function.

chrismainey commented 1 month ago

https://github.com/nhs-r-community/NHSRwaitinglist/blob/861cf52f64a70b43e8293c052cb325d711bf66a4/R/wl_stats.R#L144C3-L166C2

neilwalton commented 2 weeks ago

This should be 2* it is corrected in the code and is called via the calc_waiting_list_pressure function. This will be updated with the Priorities branch