- Create a new data set called “half” from “main”. Reduce this dataset by ½ using a random number generator for the uniform distribution (ranuni) with the seed of 100.
Unfinished Code
*Lab 8 – Problem 5;
data
run;
I run the code like this ? is it correct?
*Lab 8 – Problem 5;
data lab.half;
set lab.main;
random = ranuni(0);
if ranuni(100) < 0.5 then output;
run;
proc print data=lab.half;
run;