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.
Answer Posted / 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 View All Answers
What are the data types does SAS contain?
How to convert a numeric variable to a character variable?
Describe crosslist option in tables statement?
Describe the ways in which you can create a macro variable?
what is the effect of the options statement errors=1? : Sas programming
In sas admin differentiate between roles and capabilities? : sas-grid-administration
how to generate the test data in sas without input data? : Sas-administrator
how the sas basic syntax style described? : Sas-administrator
Describe a time when you were really stuck on a problem and how you solved it?
Can you execute a macro within a macro? Describe. : sas-macro
What is substr function?
What do you know about sas data set?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Mention common programming errors committed in sas ?
What are the prime responsibilities of data integration administrator? : Sas-di