Add death rate to the model - #14
Conversation
This commit adds the death rate to the SIR model by decomposing \gamma = a + b then ds/dr = - \beta*s(t)*i(t) di/dr = \beta*s(t)*i(t) - (a + b)*i(t) dr/dt = ai(t) dk/dt = bi(t) where 'a' is the recovery rate and 'b' is the death rate. Signed-off-by: Giuliano Belinassi <giuliano.belinassi@usp.br>
|
I just noticed that you used To balance which value you want to give priority to. To generalize for 3 variables, it is possible to use the convex closure. One possibility is But I am not sure if this is the best value for this simulation. |
|
My personal view is I would rather not include death estimation. Besides the pollution of data on or if SIR is acceptable to this it can also send some wrong message. Just my 2 cents. |
|
you might find interesting https://github.com/ImperialCollegeLondon/covid19model they model deaths and how the different measures affect the count. |
But the deads with coronavirus is the most accurate data because they are tested after death. The number of cases or recovery are not at all. There is a lot of under notification. I validated the model for China, Italy, UK and Canada. After I applied to Brazil. See attached. In order to match China I had to make recovered initial condition negative. If the model would have a delay, it could be simulated without problems. |
|
Hi, Guilherme That is very interesting! Yesterday I implemented what I think is a better way to calculate the death rate. I start from the same equation about the death rate 'dk/dt', but then I use algebraic manipulation to find how to decompose it into 'cured' and 'death'. It is implemented in this branch. I will provide a better documentation soon. Thank you, |
|
Hi, I have just written a document explaining the model. Check this branch. Thank you, |
|
Great ...do you have plots for various countries? @giulianobelinassi If you need to use the country with provinces, I implemented a function to sum province data under the same country. You can used it in place of remove_provinces. You will need to import some modules: |
|
@giulianobelinassi here are some improvements possible:
|
|
Hi, Guilherme. Thank you for all this info. I will take a look closely Could you provide me the parameters you used to generate the China graphic? (S_0, I_0, R_0, D_0). I see that your 'recovered' starts at a negative value. I am trying to reproduce it with my other implementation. Thank you, |
|
I tried to run their model in R but I could not. A lot of errors. |
|
Hi, Guilherme Please, checkout to branch death_rate_2 Giuliano. |
Thanks |
|
@gasilva Can I get the whole code for generating these graphs ?? |
I will take a look and try to find it...a lot of codes here |
|
Hi every one, i'm a student, i want to fit beta an gamma in my model SIR to an data. Can any one help me? |




This commit adds the death rate to the SIR model by decomposing
\gamma = a + b
then
ds/dr = - \beta*s(t)i(t)
di/dr = \betas(t)*i(t) - (a + b)*i(t)
dr/dt = ai(t)
dk/dt = bi(t)
where 'a' is the recovery rate and 'b' is the death rate.
Please see line 224. I don't know how to add l3 correctly into the equation correctly.
See #13
Signed-off-by: Giuliano Belinassi giuliano.belinassi@usp.br