gerbsen / covid19-curve-your-city

Extrapolation der COVID19-Infektionen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extrapolierte COVID19-Infektionen

Dresden

Deutsch

Datenquelle: dresden.de

English

data source: dresden.de

Statistik

Deutsch

Für die rote Linie im o.g. Plot benutze ich ein sehr einfaches Modell: das exponentiellen Wachstum der COVID19-Pandemie. Ich fitte die Daten mit einem Least-Squares-Verfahren entsprechend der Formel für das Modell:

diagnosed ~ a*exp(b*day)

Wobei a und b freie Parameter sind.

English

For the red line in the plot above, I use a simple model: the exponential growth of the COVID19 pandemia. I fit the data using a Least Squares Algorithm using the formula of the model:

diagnosed ~ a*exp(b*day)

Here a and b are free parameters.

Reproduziere das!

German

  1. R installieren
  2. Abhängigkeiten installieren
$ R
> install.packages(c("ggplot2","dplyr","readr","optparse", "cowplot"))
  1. exponential.R-Script laufen lassen
$ Rscript exponential.R -i de_dresden.csv
  1. Dies produziert zwei Dateien de_plus7.png und en_plus7.png.

English

  1. install R
  2. install dependencies
$ R
> install.packages(c("ggplot2","dplyr","readr","optparse", "cowplot"))
  1. run exponential.R script
$ Rscript exponential.R -i de_dresden.csv
  1. this produces 2 files: de_plus7.png and en_plus7.png that contain the plots based on de_dresden.csv

About

Extrapolation der COVID19-Infektionen

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:R 94.3%Language:Makefile 5.7%