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

which date function advances a date, time or datetime value by a given interval? : Sas programming

0 Answers  


what is in stream data in SAS?

1 Answers  


how many display types available in sas bi dashboard? : Sas-bi

0 Answers  


how do you derive descriptive statistics?

1 Answers   Accenture, Quintiles,


how can you create zero observation dataset? : Sas programming

0 Answers  






Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  


What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?

8 Answers  


what are all the default values getting in PROC MEANS...???

2 Answers  


I have a dataset concat having variable a b & c. How to rename a b to e & f?

0 Answers  


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

0 Answers  


What are the Aggregate functions in SQL ?

2 Answers   AON,


How to read multiple excel sheets from a single excel file at once????

7 Answers   HCL, Verinon Technology Solutions,


Categories