How would you generate 1000 observations from a normal
distribution with a mean of 50 and standard deviation of
20. How would you use PROC CHART to look at the
distribution? Describe the shape of the distribution.



How would you generate 1000 observations from a normal distribution with a mean of 50 and standard..

Answer / yuyin

data temp(keep=x);
retain mu 50 std 20 seed 0;
do i=1 to 1000;
x=mu+std*rannor(seed);
output;
end;
run;
proc chart data=temp;
vbar x;
run;
normal distribution with mean =50 and std=20

Is This Answer Correct ?    22 Yes 2 No

Post New Answer

More SAS Interview Questions

How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

0 Answers  


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

7 Answers   Accenture,


what is difference in window SAS & Unix SAS.....how do define working environment in both???

1 Answers   JPMorgan Chase,


what is sas enterprise intelligence architecture? : Sas-bi

0 Answers  


i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.

6 Answers   CTS,






What is highest missing value for numeric?

1 Answers  


Difference between sum function and using “+” operator?

0 Answers  


How we can call macros with in data step? : sas-macro

0 Answers  


Describe the function and utility of the most difficult SAS macro that you have written?

0 Answers   Oracle,


What versions of SAS have you used (on which platforms)?

0 Answers   Quintiles,


How do dates work in SAS data?

0 Answers  


how will you location sas platform applications available from web browser? : Sas-bi

0 Answers  


Categories