A PDF report generated with RStudio, R and knitr where data from COVID-19 was analyzed. Countries Austria, Germany, Iceland, Italy, Spain, United Kingdom, US presented.
A PDF report generated with RStudio, R and knitr where
data from COVID-19 was analyzed.
See final PDF report: COVID19.pdf
Descriptive analysis: Comparison between countries, total confirmed
cases, total confirmed cases per million people, no. of active cases per
million people, death cases per million people, Case Fatality Rate.
No. of active cases: = confirmed minus death minus recovered.
Countries presented: AT, Germany, Iceland, IT, Spain, UK, US
Population data used from:
https://covid.ourworldindata.org/data/ecdc/locations.csv
COVID-19 data from Johns Hopkins CSSE:
https://github.com/CSSEGISandData/COVID-19
Data from Johns Hopkins were normalized (from the original wide to a
long dataset) in SAS (SAS program not shown). The
https://github.com/clindocu/sas-macros-r-functions/blob/master/gather.sas
macro was used to generate the derived SAS dataset(s).
ALLDAYS.xpt
- all countries/days (w/o population data)
ALLSTATE.xpt
- countries/days (with population data)
See section 1 in Covid19.pdf
Windows 7, RStudio IDE, R, knitr, Tex Live 2017
Create the directory C:\Temp\Covid19
and copy all files (.R,
.Rnw, .xpt, .pdf, .jpg) into this directory. In the case that a
different R working directory will be used, the correct path has
to be specified in the program impsas_xpt.R with the statement:
setwd(“path”)
Create an empty sub-directory C:\Temp\Covid19\Figure
Open Covid19.Rnw and click on Compile PDF in RStudio
Compile PDF -> Covid19.pdf will be automatically generated and
opened
For requirements and instructions, see
https://github.com/clindocu/rstudio-knitr-report
This program and the derived dataset(s) come WITHOUT ANY WARRANTY.