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 is the difference between proportion and average?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Explain the use of proc gplot? : sas-grid-administration
What is the SAS data set?
describe the interaction table in sas di? : Sas-di
what is program data vector? : Sas-administrator
Explain the difference between using drop = data set option in set and data statement?
How to sort in descending order?
What was the last computer book you purchased? Why?
what are several options for creating reports in web report studio? : Sas-bi
Explain why double trailing @@ is used in input statement?
what is hierarchy flattening? : Sas-di
What is the difference between using drop = data set option in data statement and set statement?
How do you test for missing values?
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?