-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functionality for time varying CFR and different delays depending on outcome #36
Comments
Currently the outcome is given in the Given the features outlined above require the time of recovery to be explicitly given in the line list, what is the preferred format of the data?
Some comparisons to other line lists:
Please let me know your preference. Once we have a general consensus I will start implementing the updates. |
Our linelists usually use the 1st format with |
…sim_input to return compound warnings or errors, WIP #36
PR #99 adds the onset-to-recovery delays and the I will leave this PR open for a few days for comments and then will merge it into the |
I'm currently implementing the time-varying case fatality risk. One questions is how to setup the death-risk, a couple of options:
Both options can feasibly be implemented. So let me know which is preferable in most use cases. |
The first implementation of time-varying case fatality risk uses the first option which can be found in the |
Thanks for sharing. On the above edit, how does the normalised function interact with the overall CFR? It seems like an intuitive option for a user would be to directly define the CFR over time as a model input (e.g. On the question of time-varying death at point of infection or death, could see use case for either end of the spectrum, e.g. vaccination pre-defining risk at point of infection, like an Ebola campaign, or treatment quality influence outcome later in infection. However, the latter would typically have the intervention working before point of death (e.g. treatment once ill or hospitalisations). So perhaps cleaner for use the time of infection assumption, as this has a direct link to vaccination or early treatment quality. Generally if delay from onset-to-death is quite long, it would be tricky to estimate sudden changes in CFR (just as it's hard to estimate changes in |
The overall CFR is an interaction of the hospitalised death risk ( The other possible implementation for this feature is to allow the A more full explanation of the first implementation can be found here: https://github.com/epiverse-trace/simulist/blob/time-varying-cfr/vignettes/time-varying-cfr.Rmd (can be best read if you clone the package and run
Okay, I'll keep with the time-varying function
There is some early exploration in https://github.com/epiverse-trace/simulist/blob/time-varying-cfr/vignettes/time-varying-cfr.Rmd on "eras" of severity using stepwise CFR functions, seems to produce sensible results. |
That makes sense – given risks are separately defined (i.e. P(hospitalisation) and hospitalisation death risk), a defined CFR would probably abstract too much away from user. So just to understand, if there is a time varying function defined, then at the peak normalised value, the risk would equal |
Yes exactly. The same is true for However, your earlier comment got me thinking about the possibility of passing functions directly to Edit: keeping this discussion open, but deciding to go with the first implementation for now to get this feature integrated into the package. I had overlooked that the |
…ude time-varying rates, relates #36
Second PR introducing time-varying cfr to the package now live #101. Comments and suggestions welcomed. |
Once PRs #99 and #101 are merged I will close this issue. The two case studies that can now be carried out with these new features will continue to be tracked in epiverse-trace/howto#37. |
…sim_input to return compound warnings or errors, WIP #36
…ude time-varying rates, relates #36
…ude time-varying rates, relates #36
Closing as PRs #99 and #101 have been merged. Thanks for all the input from everyone on this issue and to @adamkucharski, @ntncmch and @PaulC91 for raising the feature requests. |
Also adding this PR for reference, that shows how these two situations can to some extent be addressed with existing {cfr} functionality: epiverse-trace/cfr#170 |
Recent discussion with @ntncmch and @PaulC91 identified a couple of situations where having simulated data could be useful to test different approaches to fatality risk estimation, with a focus on simple/fast methods that could be included in packages like epishiny.
A. Cholera-like outbreak.
Typical situation: Recoveries not recorded, but deaths are, so have to make an assumption (e.g. missing = recovered).
Methodological problem: May not be accurate if not all missing entries are recovered, and in real-time don’t have known outcomes yet for all cases. Also, may not know onset-to-outcome delays for a new outbtreak (this is related to more detailed analysis work here in epidist).
Methodological solutions to test: compare ‘naive’ estimate calculating deaths/cases among individuals with known outcomes with 1) a ‘filtered’ approach that constructs a cohort with same onset times and filters out the most recent onset times (e.g. remove individuals with onset dates in last 1-2 weeks). Could also use this to calculate the delays themselves; 2) estimate calculating deaths/cases among individuals with known outcomes, assuming missing = recovered and 3) input into CFR as incidence (because then can use the functionality which estimates proportion of cases with known outcomes at present day).
B. Ebola-like outbreak.
Typical situation: delay to death shorter than delay to recovery, which can bias recent estimates.
Problem: Will bias recent estimates of CFR, because stratifying individual data on known outcome when estimating CFR from line-list data assumes onset-to-death = onset-to-recovery
Methodological solutions to test: compare 'naive’ estimate with (1) and (3) above.
Summary of
simulist
functionality that would required for both of the above use cases: 1) Ability to simulate using diferent onset-to-death and onset-to-recovery and 2) Ability for the 'true' CFR to vary over time in the simulation, to check can recover correct values in a simple estimation method.The text was updated successfully, but these errors were encountered: