Simple Prediction in SARS-CoV-2 Shiny App

[This article was first published on rstats-tips.net, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I made another small update to my SARS-CoV-2 Shiny App.

As the discussion in Germany about whether to open schools and shops starts again I was wondering how I could visualize a simple prediction of future infections.

So I did the following simple approach:

Take the lowest and highest 7-day R-value of the last 7 days. Then use these two R-values and predict the infections for the next four weeks.

The result is shown using geom_ribbon of ggplo2: (See the gray area in the red rectangle below.)

Because I use the last known date as starting point and the infections get even higher as time passes because it takes some time until all infections are known bei Robert Koch institure the prediction errs to the lower side.

Note: new tag

I’ve introduced a new tag. Use Corona-Shiny-App to get all post about my shiny app.

To leave a comment for the author, please follow the link and comment on their blog: rstats-tips.net.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)