Under Construction
Where there is no uncertainty, there cannot be truth – Richard Feynman
This version: April 23 2025 13:44
If you rotate this figure around a vertical axis (click on it), what plot do you see twice in each full rotation?
Assignment 1: (individual) due Thursday, May 2 at noon
Tools | Global Options ... | Terminal
. Then click on the box in
Shell paragraph to the right of New terminals open with:
LOG
followed by the name you use socially, e.g. ‘LOG Jon Smith’.
During the course you will
edit this post to add links to your exercises and other contributions. For now, complete the post as
follows:
Individual Student(s)/Instructor(s)
button and type
Instructors
in the text box that appears.log
button in the list of folders.Post My Note to MATH 6642!
button.Introduction:
followed by the name you use socially, e.g. Jon Smith
Github: jsmith
introductions
and on the assn1
folder when you submit your post.r_rstudio_git
folder and on the assn1
folder before submitting your post.@43
and @47
.Assignment 1: @43 @47
submit
Y ~ X + G
Y ~ X
Yr ~ Xr
where Yr
is the residual of Y
regressed on G
and similarly for Xr
Y ~ Xr
Y ~ X + Xh
where Xh
is the least-squares predictor of X
based on G
Y ~ X + Xh + Zg
where Zg
is a G
-level numerical variable, i.e. it has the same value
for all observations with a common value of G
.Y ~ X + Z1 + Z2 + ... +Zk
Y ~ X
Yr ~ Xr
where Yr
is the residual of Y
regressed on Z1, Z2, ..., Zk
and similarly for Xr
Y ~ Xr
Y ~ X + Xh
where Xh
is the least-squares predictor of X
based on Z1, Z2, ..., Zk
Y ~ X + Xh + Zg
where Zg
is a linear combination of Z1, Z2, ..., Zk
.Assignment 2: (teams) (see due dates below)
Slides:
Last hour:
Assignment 3: (individual) Due Tuesday, May 21 at noon
Assignment 4: (teams) (see due dates below)
Assignment 5: (individual)
Assignment 6: (teams) (see due dates below)
Assignment 7: (teams) (see due dates below)
Figure: Divergent chains in Stan
Predictive versus Causal Inference
Regression: Correlation, Data and Beta Ellipses
Hierarchical and Mixed Models for Clustered Data
Slides: Hierarchical Models and Mixed Models / annotated
R script: Lab 1 - Mixed Models / html / pdf
Hierarchical and Mixed Models for Longitudinal Data
Diverging chains
The following lab uses Bayesian imputation for the data with missingness determined by the mediator Weness:
Adjusting for measurement error in computed contextual variables.
Also illustrates how to perform sensitivity analysis using possible values for measurement error, and
how to simulate a multi-level data set.
rstanarm
package.John Fox and Tanya Murphy sent some very interesting references:
A great many collaborators, students and friends have contributed to many of the ideas in this course. I’d like to acknowledge a few with deep apologies to the many I’m missing.