Created
August 27, 2017 18:30
-
-
Save statgeek/8a9e15cd823aaf7b54c2d5b1bc6faab1 to your computer and use it in GitHub Desktop.
SAS - create random numbers for each observation
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
/*How to create 50 random numbers for every observation in your data set */ | |
data want; | |
set sashelp.class; | |
do i=1 to 50; | |
zv = rannor(0); | |
output; | |
end; | |
run; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment