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 is program data vector (pdv) and what are its functions?
what is the difference between SET and MERGE?
What do the mod and int function do? : Sas programming
what is the frontend and backend of sas? Is sas is a progaming langauge or tool? on which langauge sas depends?
describe about joins? briefly?
Difference between nodup and nodupkey options?
what is the difference between informat$8. $char8.
what are all the ways to define macro variable??
2 Answers GSK GlaxoSmithKline,
Explain the difference between nodup and nodupkey options?
how do you validate sas program?
How do handle working under pressure?
where will go the observations that were deleted by delete statement?