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 are the functions which are used for character handling functions?
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?
What is the difference between using drop = data set option in data statement and set statement?
what is a post baseline?
What is the role of unrestrictive users? : sas-grid-administration
what is hash files in sas and why we are using this one in sas?
what are different type of sas servers ? On which server does the sas code execute ?
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?
Which statement does not perform automatic conversions in comparisons?
What is the function of output statement in a SAS Program?
what is the difference btw proc means and proc univariate?