-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.R
More file actions
57 lines (48 loc) · 1.26 KB
/
main.R
File metadata and controls
57 lines (48 loc) · 1.26 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
###################################
## Libraries
###################################
library(tidyverse)
library(RxODE)
library(caTools)
library(rstanarm)
theme_set(theme_gray()) # undo rstan theme setting
library(ggplot2)
library(dplyr)
library(gridExtra)
library(data.table)
library(grid)
library(RColorBrewer)
library(lme4)
library(emmeans)
###################################
## Path to figure directory
###################################
fig_path = 'figures/'
##################################
## Set default theme
##################################
source('utils/paper_theme.R')
##################################
## Image size file defaults
##################################
d_width <- 116.9
d_height <- 82.7
d_dpi <- 1000
##################################
## Set seed
##################################
set.seed(12)
##################################
## Run section 2
##################################
source('Section2/201_selection.R')
source('Section2/202_preattent.R')
source('Section2/203_preattent.R')
source('Section2/204_group.R')
##################################
## Run section 4
##################################
source('Section4/401_case1.R')
source('Section4/402_case2.R')
source('Section4/403_case3.R')
source('Section4/404_case4.R')