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


Please Help Members By Posting Answers For Below Questions

What is the difference between proportion and average?

2758


In sas admin differentiate between roles and capabilities? : sas-grid-administration

557


Explain the use of proc gplot? : sas-grid-administration

556


What is the SAS data set?

679


describe the interaction table in sas di? : Sas-di

595






what is program data vector? : Sas-administrator

615


Explain the difference between using drop = data set option in set and data statement?

683


How to sort in descending order?

795


What was the last computer book you purchased? Why?

1916


what are several options for creating reports in web report studio? : Sas-bi

631


Explain why double trailing @@ is used in input statement?

577


what is hierarchy flattening? : Sas-di

619


What is the difference between using drop = data set option in data statement and set statement?

639


How do you test for missing values?

1059


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2267