-
Notifications
You must be signed in to change notification settings - Fork 4
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
Do inference on generated data #54
Do inference on generated data #54
Conversation
…-in-conjunction-with-the-already-existing-rw-latent-process
… toy model script.
…-in-conjunction-with-the-already-existing-rw-latent-process
… for draws from the Turing model
…liant-output New function `spread_draws` for creating `tidybayes` compliant MCMC output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(once above conversations are resolved this will auto-merge)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(once above conversations are resolved this will auto-merge)
… rather than a NamedTuple field
This PR demonstrates adding Bayesian inference to a combined
EpiModel
, latent process and observation process together for a toy model.Specific options
EpiModel
isDirectInfections
; that is the latent process is aimed at generating the log-infections directly (as opposed torandom_walk
; that is the latent process is a random walk with unknown step size variance.delay_observations
; that is the infections are delayed by a delay kernel and then cases are observed using negative binomial sampling.Minor additional fixes
latent_process_priors
is renamed toprocess_priors
. This contains the prior distributions of all processes rather than just the latent generative process; this is the simplest in code (see Improve the prior interface formake_epi_model_inference
#45 ), but might be changed soon.random_walk
to engage type stability.Direct_Infections
so that it started at the inferredinit
value.Closes #43