Repository navigation
Description
Since the model updates in PR #169 which hopefully resolve the issue around how cases in isolation transmit, a model assumption question has arisen.
Currently, if a transmission event occurs when the infector is in isolation, the infectee waits until they are symptomatic to also isolate. This seems sensible if we assume the infectee assumes not to be a case and is in the community. However, we might also want to allow a scenario in which infectees from isolated infectors isolate immediately upon exposure (I believe this would be equivalent in this model to assuming the infectee was already isolating).
Imagining this as a real-world scenario. If we set
This is different from the current implementation of quarantine which affects all cases, whereas this proposal only early isolates cases caused from transmission in isolation.
I believe the change to the code would be relatively minor. A new argument to intervention_opts() and then a new conditional added to the assignment of isolation time in outbreak_step():
Lines 145 to 159 in 088e526
| prob_samples[, isolated_time := { | |
| ref_time <- onset + delays$onset_to_isolation(.N) | |
| fcase( | |
| # If asymptomatic, never isolated: time is Inf | |
| asymptomatic == TRUE, Inf, | |
| # If not asymptomatic, but are missed, isolated at your symptom onset | |
| missed == TRUE, ref_time, | |
| # if quarantine is in effect, isolated at the earlier of infector's or | |
| # infectee's isolation time | |
| rep(interventions$quarantine, .N), pmin(ref_time, infector_isolation_time), | |
| # isolated at symptom onset time if after infector isolation time, | |
| # otherwise at the earlier of infector and infectee isolation times | |
| default = pmin(ref_time, pmax(onset, infector_isolation_time)) | |
| ) | |
| }] |
Activity
pearsonca commentedon Oct 23, 2025
I've lost track of the model diagram here, but I thought transmission from isolation was definitional precluded (currently - I agree it might be interesting to model e.g. household transmission)?
sbfnk commentedon Oct 27, 2025
This makes sense to me. That said, worry a bit about feature creep in an ever expanding model implemented with conditionals and decisions that implicitly preclude future model directions (or complicate them by requiring more forking paths). I could e.g. imagine situation were$R_t^{isolated} > 0$ and this does not represent household transmission (e.g. people have needs in the community, visit a doctor, go to a shop etc.). Is the suggestion informed by a particular need in an application that requires including household transmission? If that is the case, would it perhaps make sense instead to model household transmission explicitly (where you might want to have household size distributions, household secondary attack rates and household-specific interventions)?
This specific feature suggestion aside, I think it might make sense to come up with a design document for future model directions that would help put it into context, ideally solving #68 first (i.e., finding a way to accommodate different branching process models without forking or adding ever more conditionals). That would provide context for assessing suggestions like this one.
joshwlambert commentedon Nov 10, 2025
This was an area of confusion for me and relates to issue #148. I didn't see any documentation in the package that$R_0^\mathrm{iso}$ needed to be 0, nor was there an error or warning when a user set the offspring distribution for isolated individuals to be non-zero. However, I do think that prior to recent updates the package was not handling $R_0^\mathrm{iso}$ correctly. Thinking about how transmission in isolation should work led me to thinking about this issue.
Interestingly, I think this has been realised multiple times independently: timcdlucas#3.
No, I'm not thinking about this as a household transmission feature, for that I think it'd need to be more of an agent-based/network model. I was only mentioning household transmission in isolation as an example. I think the feature would apply more broadly like the scenarios you mentioned.
Let's discuss the overall development plan offline and then I'll feedback on relevant issues, including this one, with a development roadmap and links to any design document.
joshwlambert commentedon Dec 5, 2025
Please see the vignette added in PR #188 for model diagrams. Hopefully this vignette will act as a useful resource for checking our assumptions about the model and can be updated as we further develop the epidemiological model in {ringbp}.