Skip to content

Instantly share code, notes, and snippets.

@statzhero
Created January 2, 2014 10:48
Show Gist options
  • Save statzhero/8217552 to your computer and use it in GitHub Desktop.
Save statzhero/8217552 to your computer and use it in GitHub Desktop.
R gist for creating a few random IQ scores (credit R. Burns)
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