thibautjombart / covid19_bed_occupancy

Shiny app providing estimates of future bed occupancy given recent admissions
https://cmmid-lshtm.shinyapps.io/hospital_bed_occupancy_projections/
Other
12 stars 5 forks source link

Custom los #54

Closed thibautjombart closed 4 years ago

thibautjombart commented 4 years ago

Implemented the user-custom LoS distribution, as a discretised Gamma with an offset of 1 day to ensure no LoS = 0 (but requested mean is preserved).

Currently the input is conditional on a checkbox, and if provided generates a reactive element custom_los() returning a list with $r (los random number generator) and $d (PMF), both including the offset. custom_los() is NULL if corresponding input box is not checked.

This can be used, but how it is integrated in the simulations depends on whether we keep 2 analyses by default, or given a XOR choice (critical or non-critical).