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
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
Explain what Proc glm does?
How to limit decimal places for variable using proc means?
How do you add a number to a macro variable? : sas-macro
List down the reasons for choosing sas over other data analytics tools.
what does the run statement do? : Sas programming
Difference between SAS STATA & SPSS?
why is sas data integration studio important? : Sas-di
explain the main difference between the nodup and nodupkey options? : Sas-administrator
What is the difference between reading data from an external file and reading data from an existing data set?
how can you import .csv file in to sas? : Sas programming
What versions of SAS have you used (on which platforms)?
What is a macro routine?
Differentiate between proc means and proc summary.
Differentiate input and infile.