Rick, Thank you for pointing me in the right direction. It was right on point. My last question I have is how would I go about finding the probability of the mean between lets say 3 and 4? As well , how do I output the standard deviation in proc means? I know I have to equal it to something but I am confused to as of what. Also I am confused as of how means= Samplemean in proc means. As it seemed it appear out of no where. Here is my code. %let N = 961; /* sample size */ %let NumSamples = 625; /* number of samples */ data Sim; call streaminit(123); do SampleID = 1 to &NumSamples; /* ID variable for each sample */ do i = 1 to &N; x = 1+8*rand("Uniform"); /* 1 to 9 */ output; end; end; *output; run; proc means ; by SampleID; var x; output out=OutStats3 mean=SampleMean; /* I need to find standard deviation as well here. What do I put std = ? */ run; ods select Moments Histogram; proc univariate data=OutStats3; label SampleMean = "Sample Mean of U(1,9) Data"; var SampleMean; histogram SampleMean / normal ; /* overlay normal fit */ run;
... View more