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

What is program data vector (pdv) and what are its functions?

0 Answers  


what is the difference between SET and MERGE?

19 Answers   CitiGroup,


What do the mod and int function do? : Sas programming

0 Answers  


what is the frontend and backend of sas? Is sas is a progaming langauge or tool? on which langauge sas depends?

3 Answers  


describe about joins? briefly?

2 Answers   CitiGroup,






Difference between nodup and nodupkey options?

0 Answers  


what is the difference between informat$8. $char8.

3 Answers   SAS,


what are all the ways to define macro variable??

2 Answers   GSK GlaxoSmithKline,


Explain the difference between nodup and nodupkey options?

0 Answers  


how do you validate sas program?

6 Answers   Accenture,


How do handle working under pressure?

1 Answers   Oracle, Wipro,


where will go the observations that were deleted by delete statement?

2 Answers  


Categories