Created
July 1, 2019 04:01
-
-
Save mcfrank/07dcf42e0dc6594322f7397b24e48561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iqs <- data_frame(iq = rnorm(mean = 100, sd = 15, n= 40), | |
school = c(rep("Stanford",20), rep("Berkeley",20)), | |
year = factor(rep(c(1950,1990),20))) | |
summary(lm(iq ~ school * year, data = iqs)) | |
summary(lm(scale(iq) ~ school * year, data = iqs)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment