-
Notifications
You must be signed in to change notification settings - Fork 0
/
00_all.qmd
79 lines (61 loc) · 2.83 KB
/
00_all.qmd
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
75
76
77
78
79
---
title: "00_all"
format: html
editor: visual
message: false
---
```{r}
library(quarto)
```
```{r}
# Generation of the sub-documents when the main document is run
quarto::quarto_render("~/projects/Group_19_project/R/01_load.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/02_clean.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/03_augment.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/04_describe.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/05_analysis_mortality.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/06_analysis_comorbidities_etiologies.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/07_analysis_CPS.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/08_analysis_liver_disease.qmd")
quarto::quarto_render("~/projects/Group_19_project/R/09_logistic_analysis.qmd")
```
# Introduction
The aim of this project is to study the early predictors of cirrhosis' patients mortality. To do that, we investigate the effect of the different comorbidities, etiologies and liver diseases on the mortality, the Charlson Comorbidity Index and the Child Pugh Score of the patients.
## Loading the data
The dataset we used comes from the study "Early predictors of outcomes of hospitalization for cirrhosis and assessment of the impact of race and ethnicity at safety-net hospitals". The data can be downloaded by following the guideline that can be found in the 'README.md'.
```{r}
file.rename(from = "~/projects/Group_19_project/R/01_load.html",
to = "~/projects/Group_19_project/results/01_load.html" )
```
## Cleaning the data
```{r}
file.rename(from = "~/projects/Group_19_project/R/02_clean.html",
to = "~/projects/Group_19_project/results/02_clean.html" )
```
## Augmenting the data
```{r}
file.rename(from = "~/projects/Group_19_project/R/03_augment.html",
to = "~/projects/Group_19_project/results/03_augment.html" )
```
## Describing the data
```{r}
file.rename(from = "~/projects/Group_19_project/R/04_describe.html",
to = "~/projects/Group_19_project/results/04_describe.html" )
```
## Data analysis
```{r}
file.rename(from = "~/projects/Group_19_project/R/05_analysis_mortality.html",
to = "~/projects/Group_19_project/results/05_analysis_mortality.html" )
```
```{r}
file.rename(from = "~/projects/Group_19_project/R/06_analysis_comorbidities_etiologies.html",
to = "~/projects/Group_19_project/results/06_analysis_comorbidities_etiologies.html" )
```
```{r}
file.rename(from = "~/projects/Group_19_project/R/08_analysis_liver_disease.html",
to = "~/projects/Group_19_project/results/08_analysis_liver_disease.html" )
```
```{r}
file.rename(from = "~/projects/Group_19_project/R/09_logistic_analysis.html",
to = "~/projects/Group_19_project/results/09_logistic_analysis.html" )
```