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 are the functions which are used for character handling functions?

1 Answers  


how can you code the confidence intervals?

6 Answers   Cytel, IIT, Ranbaxy,


What are the ways in which macro variables can be created in sas programming?

1 Answers  


What is the difference between using drop = data set option in data statement and set statement?

1 Answers  


what is a post baseline?

2 Answers   Accenture,


What is the role of unrestrictive users? : sas-grid-administration

1 Answers  


what is hash files in sas and why we are using this one in sas?

1 Answers   L&T, SAS,


what are different type of sas servers ? On which server does the sas code execute ?

4 Answers   TCS,


I have 2 data sets A & B. Both have a variable called Age in them, each of them specifying a different functionality. In my program I use bot these data sets. How do I specify which Age variable I want to use?

6 Answers  


Which statement does not perform automatic conversions in comparisons?

1 Answers  


What is the function of output statement in a SAS Program?

1 Answers  


what is the difference btw proc means and proc univariate?

8 Answers   HSBC, TCS,


Categories