Hi,
I want to generate a data set. What i want to learn is the SAS commands to do this; the specifics i describe are not the focus per se. I want to add that i know how to do this in spss and there, as is true here, the issue is the commands.
That said. Let's say i want to create 20000 records with each record having four variables: record number (_N_ ??), x1, a draw from a normal distribution with a mean of 3 and an SD of 2; x2, a draw from a uniform distribution with a range of 2 to 5 and y, the resulting value of this regression equation y = 3.0 + 2.0*x1 + 4.0*x2+err
where err equals a draw from a normal distribution with a mean of 0 and an SD of 1.5.
I expect that this is a trivially simple thing to do; i need to know the commands and how those commands are located in a data xxx1; set ??used??; run; code block.
Thanks, Gene Maguin