Open jonjoncardoso opened 3 years ago
I've just realized that a Bayesian piecewise linear model could help with the final task. Here's a reference where they have implemented just that:
_
A piecewise linear model is when you separate your X data into disjoint regions, each driven by their own linear equations.
A visual example from _
Maybe this is a better/simpler source of a Bayesian piecewise model?
_
STAN code for the Brilleman et al paper is here on Github: https://github.com/sambrilleman/2017-Epidemiology/blob/master/stancode_randomchangecorr.stan
I've started drafting an R notebook to attempt some progress at this multiwave business using our synthetic data (check this branch) but I believe we will have to revisit the mock data script first before running any STAN model. Our current mock data does not take the infection-to-death temporal delay into consideration.
Add multiple variants to the model
1st step:
Tutorial01
)2nd step:
variants
to thedata
sectionfor variant in variants: mu[variant] ~ ....
Rt[i, m, v]
prediction
becomes the sum of the products between different Rts and each variant convolutionOriginally posted by @jonjoncardoso in https://github.com/Data-Science-Brigade/modelo-epidemiologico-sc/issues/50#issuecomment-888517434