Skip to content
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

Past sequence of latent infections for initial case representation #183

Closed
SamuelBrand1 opened this issue Apr 18, 2024 · 2 comments · Fixed by #250
Closed

Past sequence of latent infections for initial case representation #183

SamuelBrand1 opened this issue Apr 18, 2024 · 2 comments · Fixed by #250
Labels
enhancement New feature or request EpiAware

Comments

@SamuelBrand1
Copy link
Collaborator

At the moment, we use an initialisation procedure inside Renewal model:

r_approx = R_to_r(Rt[1], epi_model)
init = I₀ * [exp(-r_approx * t) for t in 0:(epi_model.data.len_gen_int - 1)]

This creates (temporarily) a vector of past latent infections based on the sampled initial value of the reproductive number (which is converted into an exponential growth rate $r$).

It might be a good idea to extend this concept to a modular plug-in; in particular this would allow generation of sensible cases early in a time series.

@SamuelBrand1 SamuelBrand1 added enhancement New feature or request EpiAware labels Apr 18, 2024
@seabbs
Copy link
Collaborator

seabbs commented Apr 18, 2024

I think we might want to think about the renewal initialisation seperately from the problem of observations depending on past latent infections?

I was assuming here that we would automatically buffer the input time index with some index index in the latent proceess? If we were to do this though we would need to think about how to pass in metadata for the Rt etc of these days. One option could be to make two ways to do this. One where we increase the time index backwards for the latent process (which is the easiest solution) and one where we restrict which time indexes are included in the obs model (the easiest when there is time indexed latent information forr the latent process).

I'm reluctant to consider the idea of extending the initialisation as these infection dates are actually at least partially observed and so can be useful - especially at the beginning on an outbreak.

@dylanhmorris
Copy link
Collaborator

@gvegayon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request EpiAware
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants