Conversation
…by current ft_sev estimates to ensure total inc is always plausible
|
|
||
| rates <- x |> | ||
| dplyr::select(dplyr::all_of(c("timestep", "ft", clinical_cols, severe_cols, denominator_cols))) |> | ||
| dplyr::select(dplyr::all_of(c("timestep", "ft", "ft_sev", clinical_cols, severe_cols, denominator_cols))) |> |
There was a problem hiding this comment.
How will the ft_sev be defined? I can see it gets set to 0.8 in the absence of other inputs, but would it be anticipated to be an output of malaria simulation? Or is it possible to input it as a parameter in get_rates (I may have misunderstood!)
There was a problem hiding this comment.
I suppose it means you can assign the proportion quite flexibly and through time, but it just means that it needs to be done actively before the get_rates function is called, right?
There was a problem hiding this comment.
Exactly, yes, the user can specify the ft_sev column prior to running get rates manual if they so wish, if not, it will default to the 0.8.
…n-downscaled) severe inc was lost, and simplified algebra
Co-authored-by: RJSheppard <73181123+RJSheppard@users.noreply.github.com>
Co-authored-by: RJSheppard <73181123+RJSheppard@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8 +/- ##
===========================================
- Coverage 98.37% 87.69% -10.69%
===========================================
Files 5 6 +1
Lines 123 195 +72
===========================================
+ Hits 121 171 +50
- Misses 2 24 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Aim: to make assumptions about severe treatment (hospitalisation) coverage and resulting probability of death more transparent and flexible.
The refactor replaces the hard‑wired Griffin‑2016 shortcut, where all malaria deaths were simply taken as 0.215 times the modelled incidence of hospital‑treated severe cases, with an explicit two‑stream calculation that first separates severe episodes into hospital and community compartments, then applies setting‑specific case‑fatality ratios to each stream. A new column, ft_sev, lets users supply (and vary over time) the proportion of severe cases that reach hospital. A warning‑backed default of 0.8 preserves backward compatibility - when this default is used the original 0.215 deaths‑to‑hospitalised‑cases ratio is recovered.
The flow is as follows:
ft_sevparameter that defines the proportion of severe cases that are hospitalised.The same treatment‑coverage multiplier that used to be applied is still applied to both severe streams before mortality is derived, making the algebra transparent and allowing referral improvements to be explored independently of first‑line treatment scale‑up.
Adding derivation of the 80% for reference
Let
mH = severe case fatality hospital: 0.065
mC= severe case fatality community: 0.6
λH= severe incidence hospital
λC= severe incidence community
ν = scaling factor linking hospitalised severe incidence to total malaria deaths: 0.215
Total deaths (predicted two ways) are:
Solving for the ratio of non‑hospitalised to hospitalised severe cases gives:

Coverage (ρ): the share of severe episodes treated in hospital, is therefore:

Which = 80%