-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchedule.html
More file actions
312 lines (286 loc) · 18 KB
/
Schedule.html
File metadata and controls
312 lines (286 loc) · 18 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.2.247">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="author" content="Jon Nations">
<meta name="dcterms.date" content="2023-01-31">
<title>Schedule: Rethinking Seminar - Winter 2023</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
</style>
<script src="Schedule_files/libs/clipboard/clipboard.min.js"></script>
<script src="Schedule_files/libs/quarto-html/quarto.js"></script>
<script src="Schedule_files/libs/quarto-html/popper.min.js"></script>
<script src="Schedule_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="Schedule_files/libs/quarto-html/anchor.min.js"></script>
<link href="Schedule_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="Schedule_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="Schedule_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="Schedule_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="Schedule_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
</head>
<body>
<div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<nav id="TOC" role="doc-toc" class="toc-active">
<h2 id="toc-title">Table of contents</h2>
<ul>
<li><a href="#week-1" id="toc-week-1" class="nav-link active" data-scroll-target="#week-1"><strong>Week 1</strong></a></li>
<li><a href="#week-2" id="toc-week-2" class="nav-link" data-scroll-target="#week-2"><strong>Week 2</strong></a></li>
<li><a href="#week-3" id="toc-week-3" class="nav-link" data-scroll-target="#week-3"><strong>Week 3</strong></a></li>
<li><a href="#week-4" id="toc-week-4" class="nav-link" data-scroll-target="#week-4"><strong>Week 4</strong></a></li>
<li><a href="#week-5" id="toc-week-5" class="nav-link" data-scroll-target="#week-5"><strong>Week 5</strong></a></li>
<li><a href="#week-6" id="toc-week-6" class="nav-link" data-scroll-target="#week-6"><strong>Week 6</strong></a></li>
<li><a href="#week-7" id="toc-week-7" class="nav-link" data-scroll-target="#week-7"><strong>Week 7</strong></a></li>
<li><a href="#week-8" id="toc-week-8" class="nav-link" data-scroll-target="#week-8"><strong>Week 8</strong></a></li>
<li><a href="#week-9" id="toc-week-9" class="nav-link" data-scroll-target="#week-9"><strong>Week 9</strong></a></li>
</ul>
</nav>
</div>
<main class="content" id="quarto-document-content">
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">Schedule: Rethinking Seminar - Winter 2023</h1>
</div>
<div class="quarto-title-meta">
<div>
<div class="quarto-title-meta-heading">Author</div>
<div class="quarto-title-meta-contents">
<p>Jon Nations </p>
</div>
</div>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">January 31, 2023</p>
</div>
</div>
</div>
</header>
<section id="week-1" class="level4">
<h4 class="anchored" data-anchor-id="week-1"><strong>Week 1</strong></h4>
<ul>
<li>Intro to Course, R, and RStudio.</li>
</ul>
</section>
<section id="week-2" class="level4">
<h4 class="anchored" data-anchor-id="week-2"><strong>Week 2</strong></h4>
<ul>
<li>Rethinking: Chapters 1, 2, & 3</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=cclUd_HoRlo&list=PLDcUM9US4XdMROZ57-OIRtIK0aOynbgZN&index=2">Video 1: The Golem of Prague</a> & <a href="https://www.youtube.com/watch?v=guTdrfycW2Q&list=PLDcUM9US4XdMROZ57-OIRtIK0aOynbgZN&index=3">Video 2: Bayesian Inference</a></li>
<li>Rethinking in brms: Chapters <a href="https://bookdown.org/content/4857/the-golem-of-prague.html">1</a>, <a href="https://bookdown.org/content/4857/small-worlds-and-large-worlds.html">2</a>, and <a href="https://bookdown.org/content/4857/sampling-the-imaginary.html">3</a>. In addition to the book content, these chapters provides a good intro the tidyverse and brms. Rethinking uses Quadratic Approximation for the first few chapters (<code>rethinking::quap</code>function), while brms only does full Bayesian sampling. Sections <a href="https://bookdown.org/content/4857/small-worlds-and-large-worlds.html#grid-approximation.">2.4.3</a> to <a href="https://bookdown.org/content/4857/small-worlds-and-large-worlds.html#markov-chain-monte-carlo.">2.4.5</a> demonstrates the differences, and section <a href="https://bookdown.org/content/4857/sampling-the-imaginary.html#summary-lets-practice-with-brms">3.4</a> shows how it all works in brms.</li>
</ul>
</section>
<section id="week-3" class="level4">
<h4 class="anchored" data-anchor-id="week-3"><strong>Week 3</strong></h4>
<p><em>Starting Here</em> I changed the videos from 2022 lectures to 2019 Lectures<br></p>
<ul>
<li>Rethinking: Chapter 4</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=zYYBtxHWE0A">Video 3: Geocentric Models</a>, & <a href="https://www.youtube.com/watch?v=QiHKdvAbYII&list=PLDcUM9US4XdMROZ57-OIRtIK0aOynbgZN&index=5">Video 4: Categories, Curves, and Splines</a></li>
<li>Rethinking in brms: <a href="https://bookdown.org/content/4857/geocentric-models.html#curves-from-lines">Chapter 4</a></li>
<li><strong>Note</strong> - 4.1 - 4.4 are the key sections. Regardless of the book cover, time series and splines are not the focus of this seminar. If you do deal with lots of time data in your discipline, then spend some extra time on it.</li>
</ul>
</section>
<section id="week-4" class="level4">
<h4 class="anchored" data-anchor-id="week-4"><strong>Week 4</strong></h4>
<ul>
<li>Rethinking: Chapters 5 - Intro to Multiple Regression</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=e0tO64mtYMU&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=5">Video 5</a>, <a href="https://www.youtube.com/watch?v=l_7yIUqWBmE&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=6">Video 6</a></li>
<li>Rethinking in brms: <a href="https://bookdown.org/content/4857/the-many-variables-the-spurious-waffles.html">Chapter 5</a></li>
<li><strong>Note</strong> - Jon will do a quick walk through of Chapter 6.1 because it’s an important issue that, I swear, some reviewer will bring up to each of you at some point! the rest of Chapter 6 focuses on scientific models and directed acyclic graphs. This is really interesting stuff, and worth revisiting on your own when thinking about variable selection, and forming your models. You can preview Jon’s 6.1 page <a href="https://htmlpreview.github.io/?https://github.com/jonnations/Rethinking_Seminar_Winter_2023/blob/main/Multicollinearity.html">here</a> or look at the code <a href="https://github.com/jonnations/Rethinking_Seminar_Winter_2023/blob/main/Multicollinearity.qmd">here</a> if you’re curious how it’s put together.</li>
</ul>
</section>
<section id="week-5" class="level4">
<h4 class="anchored" data-anchor-id="week-5"><strong>Week 5</strong></h4>
<ul>
<li>Rethinking:Chapter 8</li>
<li>Lectures:<a href="https://www.youtube.com/watch?v=QhHfo6-Bx8o&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=9">Video 9</a>.</li>
<li>Rethinking in brms: <a href="https://bookdown.org/content/4857/conditional-manatees.html">Chapter 8</a> (<em>and it is worth going through <a href="https://bookdown.org/content/4857/ulysses-compass.html">Chapter 7</a> and <a href="https://bookdown.org/content/4857/markov-chain-monte-carlo.html">Chapter 9</a></em>)</li>
<li><strong>Note</strong>: Here we start really jumping around. Chapter 8, on interactions, is a really key part of this course and what we will focus lecture time on. Chapter 7 discusses model predictive accuracy and model comparison. <strong><em>These are critical topics to Bayesian multilevel modeling</em></strong> but are very complex and time consuming to grasp, especially this early on in the topic. The same goes for MCMC machinery (Ch 9). Watch the videos, <u>but most of our model comparison practice will be integrated into the rest of the course</u>. <em>As you move forward in your projects, I recommend revisiting Chapter 7 frequently!</em></li>
<li>Also, DAGs will be used in most of the models in the book from now on. This is a very useful thing to learn, but it takes a bit of practice. In addition to the book, <a href="https://github.com/jonnations/Rethinking_Seminar_Winter_2023/blob/main/Cinelli%20et%20al.%20-%202022%20-%20A%20Crash%20Course%20in%20Good%20and%20Bad%20Controls.pdf">HERE</a> is a very useful paper on how to use DAGs with some good examples near the end.</li>
</ul>
</section>
<section id="week-6" class="level4">
<h4 class="anchored" data-anchor-id="week-6"><strong>Week 6</strong></h4>
<ul>
<li>Rethinking: Read/Skim Chapter 10, Focus on Chapter 11, and glance over Chapter 12, mostly just to see what GLMs are there so you can come back to it later.</li>
<li>Lectures: <a href="https://youtu.be/-4y4X8ELcEM?list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&t=1194">Second Half of Video 11</a>, & <a href="https://www.youtube.com/watch?v=hRJtKCIDTwc&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=12">Video 12</a>. If you find out that you will be using some generalized linear model for your project, go through <a href="https://www.youtube.com/watch?v=p7g-CgGCS34&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=13">Video 13</a> and <a href="https://www.youtube.com/watch?v=zA3Jxv8LOrA&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=14">Video 14</a> and find the relevant portions and watch them. The order should be similar to that of the text book.</li>
<li>Rethinking in brms: Chapters <a href="https://bookdown.org/content/4857/big-entropy-and-the-generalized-linear-model.html">10</a>, <a href="https://bookdown.org/content/4857/god-spiked-the-integers.html">11</a>. <a href="https://bookdown.org/content/4857/monsters-and-mixtures.html">Chapter 12</a> is <strong>indispensable</strong> if you are using certain GLMs for your project.</li>
<li><strong>Note</strong>: Introduction to Generalized Linear Models! The types of models discussed may or may not be important to your work. For example, I use Bernoulli (logistic) and Ordered Categorical (ordinal) models all the time, but I never use Poisson models (count data). The most important things to know: 1) what are the different types of response variable distributions, and when to use them, and 2) what a <strong>link function</strong> is.</li>
</ul>
</section>
<section id="week-7" class="level4">
<h4 class="anchored" data-anchor-id="week-7"><strong>Week 7</strong></h4>
<ul>
<li>Rethinking: Chapter 13</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=AALYPv5xSos&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=15">Video 15</a>, & <a href="https://www.youtube.com/watch?v=ZG3Oe35R5sY&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=16">Video 16</a></li>
<li>Rethinking in brms: <a href="https://bookdown.org/content/4857/models-with-memory.html">Chapter 13</a></li>
<li><strong>Note</strong>: The big one! Multilevel models! This week will focus on the theory behind multilevel modeling, explain why you should (almost) always use them, and introduce “varying intercepts” models.</li>
</ul>
</section>
<section id="week-8" class="level4">
<h4 class="anchored" data-anchor-id="week-8"><strong>Week 8</strong></h4>
<ul>
<li>Rethinking: Chapter 14.1 - 14.4</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=yfXpjmWgyXU&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=17">Video 17</a>, with <a href="https://www.youtube.com/watch?v=e5cgiAGBKzI&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=18">Video 18</a> and <a href="https://www.youtube.com/watch?v=pwMRbt2CbSU&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=19">Video 19</a> being optional (but it could be important to evolutionary biologists or geographers! see notes below)</li>
<li>Rethinking in brms: Chapters <a href="https://bookdown.org/content/4857/adventures-in-covariance.html#varying-slopes-by-construction">14.1 - 14.3</a> with 14.4 and 14.5 optional.</li>
<li><strong>Note</strong>: Introduction to varying slopes models. Chapters 14.1-14.3 are very critical to learn. Chapter 14.4 is a case study on social networks (any anthropologists here?), and 14.5 is a study on 2 flavors of Gaussian processes, including geospatial modeling (correlations due to geographic proximity) and phylogenetic regression (correlations due to evolutionary proximity). If you have interest in any of these things, then definitely watch Videos 15 or 16, and read the book chapters (14.4 & 14.5) carefully.</li>
</ul>
</section>
<section id="week-9" class="level4">
<h4 class="anchored" data-anchor-id="week-9"><strong>Week 9</strong></h4>
<ul>
<li>Rethinking: Chapter 15.1-15.2, and 17</li>
<li>Lectures: <a href="https://www.youtube.com/watch?v=UgLF0aLk85s&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI&index=20">Video 20</a></li>
<li>Rethinking in brms: Chapters <a href="https://bookdown.org/content/4857/missing-data-and-other-opportunities.html">15.1 and 15.2</a></li>
<li><strong>Note</strong>: Wrapping up with measurement error and missing data. 15.1 and 15.2 are methods that will likely serve everyone is this course. Also <em>HIGHLY RECCOMMENDED</em> is this <a href="https://cran.r-project.org/web/packages/brms/vignettes/brms_missings.html">brms vignette on missing data</a>. Chapter 17 is a really nice summary of what to think about going forward.</li>
</ul>
</section>
</main>
<!-- /main column -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const clipboard = new window.ClipboardJS('.code-copy-button', {
target: function(trigger) {
return trigger.previousElementSibling;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
};
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;
if (cites) {
return {
el,
cites: cites.split(' ')
};
} else {
return findCites(el.parentElement)
}
} else {
return undefined;
}
};
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const citeInfo = findCites(ref);
if (citeInfo) {
tippyHover(citeInfo.el, function() {
var popup = window.document.createElement('div');
citeInfo.cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
}
});
</script>
</div> <!-- /content -->
</body></html>