See below for resources associated with the coding workshops from SIPPS 2022. For materials from other years and/or workshop series, follow this link.
Week 1: Setting up your R environment
Before the workshop:
- download these files: data file, RMarkdown file, R Project file
-
RMarkdown file (with answers)
-
Note: If you have trouble knitting your Rmd file, find the code chunk where you load in a set of packages (using the
library()
function), and remove the texteval = False
.
-
Note: If you have trouble knitting your Rmd file, find the code chunk where you load in a set of packages (using the
- Introduction to coding slides
Week 2: Programming fundamentals
Before the workshop:-
please create a folder named
02_intro-programming
on your computer - download these files within that folder: data file, RMarkdown file, R Project file, RMarkdown challenge file
Week 3: Data cleaning, pt. 1
Before the workshop:-
please create a folder named
03_data-cleaning
on your computer - download these files within that folder: Study 1 data file (csv), Study 1 data file (rda), Study 2 data file, Study 2 README, RMarkdown file, R Project file, RMarkdown challenge file
Week 4: Data cleaning, pt. 2 (i.e., Data manipulation)
Before the workshop:-
please create a folder named
04_data-manipulation
on your computer - download these files within that folder: Study 1 data file, Study 1 followup data file, Study 2 subjects data file, Study 2 trials data file, Study 2 README, RMarkdown file, R Project file, RMarkdown challenge file
Week 5: No workshop (4th of July)
Week 6: Correlations and basic visualizations
Before the workshop:-
please create a folder named
05_corr-viz
on your computer - download these files within that folder: RMarkdown file, R Project file, RMarkdown challenge file
Week 7: Introduction to linear models
Before the workshop:-
please create a folder named
06_intro-reg
on your computer - download these files within that folder: RMarkdown file, R Project file, RMarkdown challenge file
- linear model overview
Week 8: Interactions in linear models
Before the workshop:-
please create a folder named
07_reg-interactions
on your computer - download these files within that folder: RMarkdown file, R Project file, RMarkdown challenge file
- slides on linear models with interactions
Week 9: Visualizing effects in linear models
Before the workshop:-
please create a folder named
08_reg-plotting
on your computer - download these files within that folder: RMarkdown file, R Project file, RMarkdown challenge file, data file (“affect.csv”)
Week 10: Advanced plotting
Before the workshop:-
please create a folder named
09_adv-viz
on your computer - download these files within that folder: RMarkdown file, R Project file, RMarkdown challenge file