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 do the mod and int function do? : Sas programming
Mention what are the data types does SAS contain?
Approximately what date is represented by SAS date value of 730
Best trainer in hyderabad for sas banking.if any one have details pls provide contact details.
What is the pound sign used for in the data_null_ ?
How do you add a prefix to some or all variables in a dataset using a SAS macro?
Give some examples where proc report’s defaults are same as proc print’s defaults?
What are the main differences between sas versions 8.2, 9.0, 9.1?
There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.
Explain translate function?
Can you excute a macro within a macro? Describe.
Explain substr function?