Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created September 29, 2021 18:54
Show Gist options
  • Save MJacobs1985/21bba1c30149454dcdcc2109acd21c12 to your computer and use it in GitHub Desktop.
Save MJacobs1985/21bba1c30149454dcdcc2109acd21c12 to your computer and use it in GitHub Desktop.
Simulations in SAS
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