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

Integrate Country Specific Real World Data? #1

Open
bennomeier opened this issue Mar 22, 2020 · 7 comments
Open

Integrate Country Specific Real World Data? #1

bennomeier opened this issue Mar 22, 2020 · 7 comments

Comments

@bennomeier
Copy link

Hi there Gabgoh,

I haven't used JavaScript in 15 years or so, but I have now created a fork of your repository trying to include the country specific real world data from John Hopkins University in the visualisation.

So far I am able to parse the github data for a specific country / region (the parsing code is in my fork of Chart.svelte). If you also think that this might be an idea worth exploring I would be more than happy to join forces. It may also be a good idea to develop this as a separate project. However, on the chance of being useful I wanted to share the (ongoing) work early.

@TomGoBravo
Copy link

Hey Benno, I see you made some progress at https://github.com/bennomeier/epcalc/commits/master
Nice! Do you have a link that makes viewing your branch easy?

@bennomeier
Copy link
Author

Hi Tom, thanks for your interest! It is very much work in progress, but I have now added a link to the current version to the README. At the moment you have to pass the country and population as a GET argument - here is a link for the US: https://bennomeier.github.io/epcalc/index.html?country=US&logN=19.60 Let me know what you think!

@Chubjay
Copy link

Chubjay commented Mar 26, 2020

`Night Benno, do you have Brazil data ? If so, please send it, ok ?

@bennomeier
Copy link
Author

Hi Chubjay, Brazil is listed in the JHU repository: https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv

So the country is Brazil, and the natural logarithm of its population is 19.15.

So the link is https://bennomeier.github.io/epcalc/index.html?country=Brazil&logN=19.15

Please be aware that right now the time origin of the simulation and the outbreak in Brazil are shifted. This is a bug and will be fixed tomorrow.

@Chubjay
Copy link

Chubjay commented Mar 26, 2020 via email

@bennomeier
Copy link
Author

Just to follow up on this, there is now a version that shows country specific data, and also lets you pick a strategy among "Observe", "Mitigate", and "Suppress". One sizeable flaw of the whole comparison is that there seems to be no good analogue for "Confirmed Cases" in the simulation - we have therefore opted to show daily new cases, which should roughly resemble "Infected" in the simulation.

For the countries "Brazil", "US", "Iran", "Germany", "Czechia", "France", "Italy" and "Spain", the App is aware of the approximate onset of the epidemic in their country and the population size. So for Brazil the link is now simply https://bennomeier.github.io/epcalc/index.html?country=Brazil

Only one country/region combination is supported so far:

It is straightforward to add more countries to the app - I am happy to do this if people find this useful.

Gabriel, I would be more than happy to issue a pull request, but I can also very much understand if you don't want to mix simulation and real world data.

@baobabKoodaa
Copy link

Hey, we integrated Finland specific real world data to our Epidemic Calculator fork here: https://corosim.fi/

I believe this is the most extensive effort of integrating country specific real world data with Epidemic Calculator. We addressed the confirmed case issue described by @bennomeier by creating a parameter slider for "undetected infections", and creating historical estimates for infectious (and other states) by combining confirmed case data with our parameters (with some assumptions inherent to the model).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants