Repository navigation
Expand file tree
/
Copy pathREADME.Rmd
More file actions
74 lines (52 loc) · 2.17 KB
/
Copy pathREADME.Rmd
File metadata and controls
74 lines (52 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
output: github_document
editor_options:
markdown:
wrap: 72
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
This repository contains the scripts used to analyzed the data reported
in draft:
**covid19census: U.S. and Italy COVID-19 epidemiological data and
demographic and health related metrics**
Claudio Zanettini\*, Mohamed Omar\*, Wikum Dinalankara, Eddie Luidy
Imada, Elizabeth Colantuoni, Giovanni Parmigiani, and Luigi Marchionni.
## Files and folders:
### code
Contains the scripts for retrieving, pre-processing and analyzing the
data.
- `code/libraries_functions`: loads the libraries (including
`covid19census`).
- `code/functions_analysis`: contains functions used to pre-process,
analyze and summarize data. Functions are documented.
- `code/us_preprocess`: this is used to retrieve and pre-process U.S
data. Execution of this script returns the dataframe used for the
analyses (`dat_selected`). A static copy of the dataframe is in
`data/all_raw.RDS`.
- `code/stratified_analysis.R`: it executes all the scripts and
perform stratified analyses.
### data
- `diabetes_confounders.R`: list of confounders selected for analysis.
### objs
- `dat_diab.RDS`: data used for the analysis.
- `MRR_stata_diab_5.RDS`: table of results of the regression.
------------------------------------------------------------------------
## Sources and data
The file `data/all_raw.RDS` contains a static copy of the data used for
the analysis.
Details regarding the data sources as well as functions to extract
updated COVID-19 data and aggregate them with other socio-economic and
health related metrics can be found in the [covid19census R
package](https://github.com/c1au6i0/covid19census). Please refer to the
package README or documentation for more information regarding the
variables. The scripts used to import static data are reported in the
package repository
[here](https://github.com/c1au6i0/covid19census/data-raw/).
*Note: use package `renv` and `renv.lock` file in parent folder to
install the same versions of packages that we used.*