Created
September 29, 2021 18:54
-
-
Save MJacobs1985/21bba1c30149454dcdcc2109acd21c12 to your computer and use it in GitHub Desktop.
Simulations in SAS
This file contains hidden or 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
data REGRESS2; | |
call streaminit(12345); | |
do i=1 to 1000 by 1; | |
x=rand("Uniform",0,100); | |
error=rand("Normal", 0, 0.2); | |
y=2+(0.5*x)+error; | |
output; | |
end; | |
run; | |
proc univariate data=REGRESS2; | |
var y; | |
hist Y / normal kernel; | |
run; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment