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

Approximately what date is represented by SAS date value of 730

9 Answers  


How are the analysis data sets structured?

3 Answers  


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

0 Answers  


what is the difference btw proc means and proc univariate?

8 Answers   HSBC, TCS,


how can you create zero observation dataset? : Sas programming

0 Answers  






How does the internal authentication work in sas? : sas-grid-administration

0 Answers  


What is difference between sas rename and lable?

4 Answers  


What are the parameters of scan function?

0 Answers  


what is the use of LRECL option.

1 Answers   L&T,


How would you identify a macro variable?

0 Answers  


Describe the function and untility of the most difficult SAS macro that you have written.

0 Answers  


Hi Friends, My name is Priya,am new to this Forum. am looking for SAS Platform Administration Interview Questions.I searched every where but I couldn't find any where.please can anyone help me with the FAQ's. It would be a great favor to me if you can email the Interview Questions to priyafeb84@gmail.com

0 Answers  


Categories