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 |
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?
what is difference in window SAS & Unix SAS.....how do define working environment in both???
what is sas enterprise intelligence architecture? : Sas-bi
i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.
What is highest missing value for numeric?
Difference between sum function and using “+” operator?
How we can call macros with in data step? : sas-macro
Describe the function and utility of the most difficult SAS macro that you have written?
What versions of SAS have you used (on which platforms)?
How do dates work in SAS data?
how will you location sas platform applications available from web browser? : Sas-bi