Closed thibautjombart closed 4 years ago
@noamross if you wanted to get an idea of how the model works you could have a look at these files, these are the main functions implementing bed predictions. Should be good to go once this PR is through (within minutes).
Have looked through and don't have anything to add.
@esnightingale Great thanks.
The amendment for % doubling error isn't quite right - since you're dividing by 1+/-error the low and high come out the wrong way around. Just need to swap the +/- I think?
Sorry there's been lots of changes over the last hours. Current release candidate is now on master
Can this be closed now?
The following 3 files in
app/R/
implement the model (the rest is merely auxiliary functions):predict_admissions.R
: predict daily incidence of admissionspredict_beds.R
: uses the input of the above and info on duration of hospitalisation to predict bed requirementsrun_model.R
: wraps around the first 2