-
Notifications
You must be signed in to change notification settings - Fork 18
/
01-introduction.Rmd
158 lines (140 loc) · 6.74 KB
/
01-introduction.Rmd
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
158
# Introduction
## Thanks
Various people have helped in the process of putting together these materials (either knowingly, or unknowingly). Big thanks go to:
- [Alexandra Chouldechova](https://www.andrew.cmu.edu/user/achoulde/)
- [Allison Horst](https://www.allisonhorst.com/)
- [Andrew Heiss](https://www.andrewheiss.com/)
- [Ben Baumer](https://www.smith.edu/academics/faculty/ben-baumer)
- [Benoit Monin](https://www.gsb.stanford.edu/faculty-research/faculty/benoit-monin)
- [Bodo Winter](https://bodowinter.com/)
- [David Lagnado](https://www.ucl.ac.uk/pals/people/david-lagnado)
- [Ewart Thomas](https://profiles.stanford.edu/ewart-thomas)
- [Henrik Singmann](http://singmann.org/)
- [Julian Jara-Ettinger](https://psychology.yale.edu/people/julian-jara-ettinger)
- [Justin Gardner](https://profiles.stanford.edu/justin-gardner)
- [Kevin Smith](http://www.mit.edu/~k2smith/)
- [Lisa DeBruine](https://debruine.github.io/)
- [Maarten Speekenbrink](https://www.ucl.ac.uk/pals/people/maarten-speekenbrink)
- [Matthew Kay](https://www.mjskay.com/)
- [Matthew Salganik](http://www.princeton.edu/~mjs3/)
- [Michael Franke](https://michael-franke.github.io/heimseite/)
- [Mika Braginsky](https://mikabr.io/)
- [Mike Frank](https://web.stanford.edu/~mcfrank/)
- [Mine Çetinkaya-Rundel](https://mine-cr.com/)
- [Nick C. Huntington-Klein](https://www.nickchk.com/)
- [Nilam Ram](https://profiles.stanford.edu/nilam-ram)
- [Patrick Mair](https://psychology.fas.harvard.edu/people/patrick-mair)
- [Paul-Christian Bürkner](https://paul-buerkner.github.io/about/)
- [Peter Cushner Mohanty](https://explorecourses.stanford.edu/instructor/pmohanty)
- [Richard McElreath](https://xcelab.net/rm/)
- [Russ Poldrack](https://profiles.stanford.edu/russell-poldrack)
- [Stephen Dewitt](https://www.ucl.ac.uk/pals/research/experimental-psychology/person/stephen-dewitt/)
- [Solomon Kurz](https://solomonkurz.netlify.app/)
- [Tom Hardwicke](https://tomhardwicke.netlify.app/)
- [Tristan Mahr](https://www.tjmahr.com/)
Special thanks go to my teaching teams:
- 2024:
- Ari Beller
- Beth Rispoli
- Satchel Grant
- Shawn Schwartz
- 2023:
- Nilam Ram (instructor)
- Ari Beller
- Yoonji Lee
- Satchel Grant
- Josh Wilson
- 2022:
- Ari Beller
- Sarah Wu
- Chengxu Zhuang
- 2021:
- Andrew Nam
- Catherine Thomas
- Jon Walters
- Dan Yamins
- 2020:
- Tyler Bonnen
- Andrew Nam
- Jinxiao Zhang
- 2019:
- Andrew Lampinen
- Mona Rosenke
- Shao-Fang (Pam) Wang
## List of R packages used in this book
```{r, eval=FALSE, message=FALSE}
# RMarkdown
library("knitr") # markdown things
library("bookdown") # markdown things
library("kableExtra") # for nicely formatted tables
# Datasets
library("gapminder") # data available from Gapminder.org
library("NHANES") # data set
library("datarium") # data set
library("titanic") # titanic dataset
# Data manipulation
library("arrangements") # fast generators and iterators for permutations, combinations and partitions
library("magrittr") # for wrangling
library("tidyverse") # everything else
# Visualization
library("patchwork") # making figure panels
library("ggpol") # for making fancy boxplots
library("ggridges") # for making joyplots
library("gganimate") # for making animations
library("transformr") # for gganmiate
library("GGally") # for pairs plot
library("ggrepel") # for labels in ggplots
library("corrr") # for calculating correlations between many variables
library("corrplot") # for plotting correlations
library("DiagrammeR") # for drawing diagrams
library("DiagrammeRsvg") # for visualizing diagrams
library("ggeffects") # for visualizing effects
library("bayesplot") # for visualization of Bayesian model fits
library("skimr") # for quick data visualizations
library("visdat") # for quick data visualizations
library("rsvg") # for visualization
library("see") # for visualizing data
# Modeling
library("afex") # also for running ANOVAs
library("lme4") # mixed effects models
library("emmeans") # comparing estimated marginal means
library("broom.mixed") # getting tidy mixed model summaries
library("janitor") # cleaning variable names
library("car") # for running ANOVAs
library("rstanarm") # for Bayesian models
library("greta") # Bayesian models
library("tidybayes") # tidying up results from Bayesian models
library("boot") # bootstrapping
library("modelr") # cross-validation and bootstrapping
library("mediation") # for mediation and moderation analysis
library("multilevel") # Sobel test
library("extraDistr") # additional probability distributions
library("effects") # for showing effects in linear, generalized linear, and other models
library("brms") # Bayesian regression
library("parameters") # For extracting parameters
library("rstanarm") # For Bayesian modeling with Stan
# Misc
library("tictoc") # timing things
library("MASS") # various useful functions (e.g. bootstrapped confidence intervals)
library("lsr") # for computing effect size measures
library("extrafont") # additional fonts
library("pwr") # for power calculations
library("arrangements") # fast generators and iterators for permutations, combinations and partitions
library("stargazer") # for regression tables
library("sjPlot") # for regression tables
library("xtable") # for tables
library("DT") # for tables
library("papaja") # for reporting results
library("statsExpressions") # for extracting stats results APA style
library("devtools") # for installing packages from GitHub
library("sf") # package needed for the transformr package
```
## Install all packages needed for this book
```{r, eval=FALSE, message=FALSE}
install.packages(c("knitr", "bookdown", "kableExtra", "gapminder", "NHANES", "datarium", "titanic", "arrangements", "magrittr", "tidyverse", "patchwork", "ggpol", "ggridges", "gganimate", "GGally", "ggrepel", "corrr", "corrplot", "DiagrammeR", "DiagrammeRsvg", "ggeffects", "bayesplot", "skimr", "visdat", "rsvg", "see", "afex", "lme4", "emmeans", "broom.mixed", "janitor", "car", "rstanarm", "greta", "tidybayes", "boot", "modelr", "mediation", "multilevel", "extraDistr", "effects", "brms", "parameters", "tictoc", "MASS", "lsr", "extrafont", "pwr", "arrangements", "stargazer", "sjPlot", "xtable", "DT", "papaja", "statsExpressions", "devtools", "sf", "rstanarm"))
devtools::install_github("thomasp85/transformr")
```
## Session info
```{r, echo=F}
sessionInfo()
```