data elevator;
Mean = 1000;
Sigma = 150;
Input X;
p = CDF('Normal',x,Mean,Sigma);
Pdiff = CDF('Normal',850,Mean,Sigma) -CDF('Normal',1150,Mean,Sigma);
drop sigma mean;This is what I wrote so far. How would I implement the code that uses the empirical rule of 68%,95%, and 99.7%. I understand that I must add and subtract the standard deviation from the mean but how would that look like in code ?
Thank you ! I think I got it. How does this look ?
data elevator;
infile datalines dlm=',';
Mean = 1000;
Sigma = 150;
Input X Y;
Pdiff = CDF('Normal',X,Mean,Sigma) - CDF('Normal',Y,Mean,Sigma);
drop sigma mean;
datalines;
850,1150
700,1300
550,1450
;
proc print data=elevator;
run;
Calling @Rick_SAS
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.