-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliterature.R
73 lines (54 loc) · 1.6 KB
/
literature.R
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
# Comparison of:
# 1) prevalence of mental disorder symptoms with published reports
# 2) distribution of accident sport types in the study cohort and in Austria
# (10-year average).
insert_head()
# Tools ------
library(tidyverse)
library(trafo)
library(rlang)
library(stringi)
library(readODS)
library(bootStat)
library(exda)
library(meta)
library(ggtext)
library(soucer)
library(furrr)
insert_head()
set_rownames <- trafo::set_rownames
source_all('./tools/tools.R',
message = TRUE,
crash = TRUE)
# globals -------
insert_msg('Analysis globals')
lit_globals <- list()
lit_globals$mental_symptoms <-
c('dsm5_cluster_class',
'dsm5_B_class',
'dsm5_C_class',
'dsm5_D_class',
'dsm5_E_class',
'dsm5_all_class',
'unwilling_flashback',
'flashback_frequency',
'rs13_total_class',
'phq9_total_class',
'gad7_total_class',
'phq2_total_class',
'gad2_total_class',
'phq9_total_class',
'phq8_total_class',
'phqd_panic_total_class',
'phq_events_total_class',
'traumatic_event')
# analysis scripts -------
insert_msg('Analysis scripts')
c('./literature scripts/german_monitoring.R',
'./literature scripts/own_estimates.R',
'./literature scripts/austrian_microcensus.R',
'./literature scripts/plots.R',
'./literature scripts/kurasi.R') %>%
source_all(message = TRUE, crash = TRUE)
# END ------
insert_tail()