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 differences between sum function and using “+” operator?
how to debug and test the sas program? : Sas-administrator
how to change the execute of macro
What do the put and input function do?
How do you specify the number of iterations and specific condition within a single do loop?
explain the use of % includes a statement in sas? : Sas-administrator
How to specify variables to be processed by the freq procedure?
How to sort in descending order?
What does P-value signify about the statistical data?
what techniques and/or procs do you use for tables? : Sas programming
What are the difference between sas functions and procedures?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
Describe the function and untility of the most difficult SAS macro that you have written.
How you can read the variables that you need?
Do you need to know if there are any missing values?