Difference b/n proc means and proc summary procedures?

Answers were Sorted based on User's Feedback



Difference b/n proc means and proc summary procedures?..

Answer / manojkumar.d1218

proc means and summary procedures are display the summary
statistics like n mean e.t.c...
And To display the summary statistics means procedure is the
is more efficiency because print option is default working
and display the summarized tables summary procedure is more efficient because noprint option is default working

proc means data=sashelp.class;
class name;
var age;
run;

/*for summary procedure */
proc summary data=sashelp.class;
class name;
var age;output out=summary_statistics;
run;









Is This Answer Correct ?    6 Yes 0 No

Difference b/n proc means and proc summary procedures?..

Answer / lakshmi

PROC SUMMARY DEFAULTS TO NOPRINT
PROC MEANS DEFAULTS TO PRINT
PROOC MEANS GENERATE A DEFAULT OUTPUT BUT PROC SUMMARY
REQUIRED PRINT OPTION TO GENERATE OUTPUT SIMILAR TO PROC
MEANS
TO GET SIMILAR OUTPUTS PROC SUMMARY SHOULD COMPUSORY HAVE
ATLEAST ONE VARIABLE IN VAR STATEMENT
/*FOR EXAMPLE RUN THE BELOW 2 APPLICATIONS WE OBSERVE THE
ANSWER*/
PROC MEANS DATA=SASUSER.AE;
RUN;

PROC SUMMARY DATA=SASUSER.AE;
RUN;
THE OUTPUT WILL BE DIFFERENT K

Is This Answer Correct ?    3 Yes 1 No

Difference b/n proc means and proc summary procedures?..

Answer / sasswarup

Proc SUMMARY and Proc MEANS are essentially the same procedure. Both procedures compute descriptive statistics. The main difference concerns the default type of output they produce. Proc MEANS by default produces printed output in the LISTING window or other open destination whereas Proc SUMMARY does not. Inclusion of the print option on the Proc SUMMARY statement will output results to the output window.
The second difference between the two procedures is reflected in the omission of the VAR statement. When all variables in the data set are character the same output: a simple count of observations, is produced for each procedure. However, when some variables in the dataset are numeric, Proc MEANS analyses all numeric variables not listed in any of the other statements and produces default statistics for these variables (N, Mean, Standard Deviation, Minimum and Maximum).

Using the SASHELP data set SHOES the example reflecting this difference is shown.

proc means data = sashelp.shoes;
run;

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SAS Interview Questions

What are the new features included in the new version of SAS Programming Language?

0 Answers  


If a variable contains letters or special characters, can it be numeric data type?

0 Answers  


Compare sas with other data analytics tools.

0 Answers  


Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?

3 Answers  


One way of creating a new variable in Macros is by % Let....What is the other way..?

5 Answers   TCS,






What is the difference between informat and format statement?

1 Answers  


what type of reports you are generating in your company...???

2 Answers   GSK GlaxoSmithKline,


how many data types in sas? : Sas-administrator

1 Answers  


what is sas? is a package or tool? give me introduction about sas?

11 Answers   Accenture,


I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.

4 Answers  


How do you use the do loop if you don’t know how many times you should execute the do loop?

0 Answers  


how can get the first and last observations in a dataset using Proc SQl?

4 Answers   Satyam,


Categories