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 / 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 |
What is the Program Data Vector (PDV)? What are its functions?
If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
what is washout period?
How to get the repeated values by using sql in sas ?
What is the work of tranwrd function?
what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
36 Answers Accenture, College School Exams Tests, CTS, IBM, IHRD, Infosys, Sylhet Engineering College, TCS, Wipro,
What are pdv and it functions?
Can you execute macro within another macro? : sas-macro
In the flow of DATA step processing, what is the first action in a typical DATA Step?
Which of the following is not created during compilation phase?
how to read character value without using substr function in sas ?
What is the order of evaluation of the following operators + - * / ** () ???