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 statement do you code to tell SAS that it is to write to an external file?
How would you delete duplicate observations?
How will you generate test data with no input data?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
Please write codes to merge two datasets and keep every record in the first dataset.
what are scrubing procedures in SAS?
How do dates work in sas?
what is Difference between PROC SQL JOINS and MERGE?
What are the special input delimiters used in SAS?
Differentiate between proc means and proc summary.
What would you change about your job?
Explain bmdp procedure?