Created
January 2, 2014 10:48
-
-
Save statzhero/8217552 to your computer and use it in GitHub Desktop.
R gist for creating a few random IQ scores (credit R. Burns)
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
iqcor <- matrix(.5, nrow=2, ncol=2) | |
diag(iqcor) <- 1 | |
iqcor | |
require(MASS) | |
mvrnorm(10, mu=c(100, 100), Sigma=100*iqcor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment