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 you feel about hardcoding?
What is the difference between using drop = data set option in data statement and set statement?
What do the PUT and INPUT functions do?
if i having variables named a b c d e f ,how to find total of each variable ????give syntax...??
what is portability of sas programmes?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How is character variable converted into numeric variable and vice versa?
How the Excel file enter into the SAS environment without Code of Infile & Import procs,if i have no file Conversion?
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
How to read an input file in sas?
in ods is there any lib's