I would like to do a Monte Carlo simulation related to this post: How to predict the degree to which an extraneous variable will attenuate a correlation?
I need to generate a dataset with a Pearson r of .25 between order of grading a test and the test grade. One variable will have integer numbers as values (in my case, the counting numbers between 1 and 150.) The other variable will be continuous and preferably normal.
In other words, I would like to create a dataset with a new variable with a specified correlation with the counting numbers 1, 2, 3 ... 150.