-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
65 lines (45 loc) · 2.81 KB
/
README.Rmd
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
---
title: "PASC Conditional Independence Testing"
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
<!-- badges: start -->
<!-- badges: end -->
This package implements conditional independence testing procedures to identify codified concepts related to prior exposure to SARS-CoV-2 in 4CE Phase2.2 Data. Running this package necessitates refreshed Phase2.2 data up to Feb 1, 2022 inclusive of all patient cohorts.
4CE analysts at each participating healthcare system can follow the steps described bellow to run the analysis locally, using their healthcare system's 2.2 data. This version of the package was not built for Docker. The summarized results are then shared and combined with those obtained from other healthcare systems. Those phenotype conditional testing results regroup PheCode, beta coefficient, standard errors, p-values, and prevalence estimates.
### 1. Install the package
Install the development version of **Phase2.2PASCcondIRPackage** from GitHub using remotes:
```{r install, eval = F}
remotes::install_github('covidclinical/Phase2.2PASCcondIRPackage', upgrade = FALSE)
library(Phase2.2PASCcondIRPackage)
```
### 2. Run the Analysis
Please note that the analysis can take up to two days to run, depending on your sample size.
```{r run, eval = F}
dir.data = "" # specify the input data directory, where the phase 2.2 data is saved
dir.repo = "" # specify the output data directory, where the results will be saved
siteid = "" # specify the site ID (capital letters)
# run the analysis
runAnalysis(dir.data, dir.repo, siteid, run.DML=T)
```
### 3. Submit the results
<!-- #### 1. Submit the results via GitHub -->
<!-- Finally, please submit the results to [Phase2.2PASCcondISummariesPublic](https://github.com/covidclinical/Phase2.2PASCcondISummariesPublic): -->
<!-- - Share your GitHub handle with @Clara-Lea via direct message so you can be added as contributor to the repository. -->
<!-- - Note that you will need to use a token to access **private** repositories. Please see the details [here](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). -->
<!-- To generate a new token, go to your GitHub settings -> Developer settings -> Personal access tokens -> Generate. -->
<!-- Then, run the following: -->
<!-- ```{r, eval=FALSE} -->
<!-- submitAnalysis() -->
<!-- ``` -->
<!-- #### 2. Alternatively, you can submit the results via Slack. -->
Your results will be saved under the path that you specify in `dir.repo`, as an .Rdata file. Please share the results with @Harrison and @Clara-Lea via the Slack channel #post-acute-sequelae.
Thank you very much for your contribution!