Homepage for 17-803 "Empirical Methods" at Carnegie Mellon University

Load the typing speed data: typingSpeed.csv
Visualize the relationship between number of typos and typing speed. Run a regression analysis on the pooled data.
Interpret the analysis results.
The data is from 50 participants at 50 measurement occasions each.
Pick 5 random participants and plot their 50 measurement occasions in a joint plot using different colors or symbols. Interpret the data.
As we can see, we have two sources of variation that can be used to explain or predict the rate of errors:
Model the typist as a fixed effect. Interpret the regression results.
Now fit a linear mixed model and see how we can detect both the within- and between-group patterns.
library(lme4)
library(lmerTest)
lmer(typos ~ speed + (1 | participant))
What if we want to capture both the within- and between-group patterns in a simple regression?
We can split our predictor (speed) into two variables, each representing a different source of variance:
Fit a simple linear model.
What happens if you fit a linear mixed model with a random intercept for participant?