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 |
Name statements that are execution only.
When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
What do you feel about hardcoding?
What is substr function?
Given an unsorted data set, how to read the last observation to a new data set?
Differentiate between ceil and floor functions.
What is the difference between nodup and nodupkey options?
20 Answers iFlex, Makro, Talwar,
What do you know about symput and symget?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
What is the use of %include statement?
Briefly describe 5 ways to do a "table lookup" in sas.
How to convert HTML file into SAS dataset?