You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/prepare_QA.Rmd
+11-20Lines changed: 11 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,14 @@ author: "Milou Sep"
4
4
date: "4/15/2021"
5
5
output: html_document
6
6
editor_options:
7
-
chunk_output_type: inline
7
+
chunk_output_type: console
8
8
---
9
9
10
10
```{r setup, include=FALSE}
11
11
rm(list = ls()) #clean environment
12
12
# load files from OSF
13
13
library(osfr)
14
14
# Authenticate to OSF (see: http://centerforopenscience.github.io/osfr/articles/auth.html). Via osf_auth("PAT") in the commentline. (note PAT can be derived from OSF)
15
-
16
15
library(readxl)
17
16
library(dplyr)
18
17
library(tidyr)
@@ -22,7 +21,7 @@ library(viridis)
22
21
```
23
22
24
23
# retrieve OSF files
25
-
```{reval=FALSE, include=FALSE}
24
+
```{r include=FALSE}
26
25
osf_retrieve_file("tckb5") %>% osf_download(path = "data", conflicts="overwrite") # QA data
27
26
```
28
27
@@ -74,7 +73,8 @@ head(QA.H)
74
73
# Note: for QA score -> higher is better quality.
75
74
Y=0; N=1; unclear =1/2
76
75
77
-
"valeria: "for sensitivity analysis, amount of potential bias was operationalized by summing the risk of bias of each item according to the definition: “yes” = 0, “unclear” = 0.5, “no” = 1."
76
+
Bonapersona V, Kentrop J, Van Lissa CJ, van der Veen R, Joëls M, Sarabdjitsingh RA. The behavioral phenotype of early life adversity: A 3-level meta-analysis of rodent studies. Neurosci Biobehav Rev. 2019 Jul;102:299-307. doi: 10.1016/j.neubiorev.2019.04.021. Epub 2019 Apr 29. PMID: 31047892.
77
+
-> "for sensitivity analysis, amount of potential bias was operationalized by summing the risk of bias of each item according to the definition: “yes” = 0, “unclear” = 0.5, “no” = 1."
78
78
79
79
## Clinical
80
80
```{r}
@@ -94,7 +94,7 @@ QA.H %>%
94
94
95
95
# checks
96
96
head(QA.H.recoded)
97
-
is.na(QA.H.recoded) %>% any()#should be non
97
+
is.na(QA.H.recoded) %>% any() # confirm no missing values
98
98
```
99
99
100
100
## preclinical
@@ -119,9 +119,7 @@ QA.A %>%
119
119
120
120
#checks
121
121
head(QA.A.recoded)
122
-
123
-
# QA.A.recoded
124
-
is.na(QA.A.recoded) %>% any() # should be non
122
+
is.na(QA.A.recoded) %>% any() # confirm no missing values
0 commit comments