-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseefeel-analysis.qmd
157 lines (90 loc) · 1.75 KB
/
seefeel-analysis.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
---
title: "Supplementary material"
subtitle: "Analysis of affective valence (`affval`) and perceived exertion (`perexe`) outcomes"
date: "`r format(Sys.time(), '%d %b %Y')`"
format:
pdf:
toc: true
highlight-style: atom-one
editor: source
---
```{R}
#| include: false
knitr::read_chunk('seefeel-analysis.R')
```
\newpage
# Set up
## Packages
```{R, libs}
#| echo: true
```
\newpage
## Constants
```{R, consts}
#| echo: true
```
## Functions
The below functions make the calculation of Cohen's $f^2$ effect size statistic on `lme4::lmer()` (`merMod` class objects) possible. These functions are used later after models are fitted.
```{R, funcs1}
#| echo: true
```
Convenience function for tidy printing of data.
```{R, funcs2}
#| echo: true
```
\newpage
# Data
## Import
```{R, read}
#| include: false
```
```{R, read}
#| eval: false
```
## Wrangling
```{R, wrangle}
#| echo: true
```
## Model predictions dataset
This step creates a dataset for predictions from the models used later on.
```{R, predictors_dataset}
#| echo: true
```
\newpage
# Modelling
## Outcome: `affval`
### Stepwise selection and final model
```{R, affval_mod_stepwise_sel}
#| echo: true
```
### Effect size calculations
```{R, affval_effect_sizes}
#| echo: true
```
### Model predicted `affval`
```{R, affval_mod_preds}
#| echo: true
#| fig-width: 10
#| fig-height: 6
```
\newpage
## Outcome: `perexe`
### Stepwise selection and final model
```{R, perexe_mod_stepwise_sel}
#| echo: true
```
### Effect size calculations
```{R, perexe_effect_sizes}
#| echo: true
```
### Model predicted `perexe`
```{R, perexe_mod_preds}
#| echo: true
#| fig-width: 10
#| fig-height: 6
```
\newpage
# R session information
```{R, sess_info}
#| echo: true
```