Difference b/n proc means and proc summary procedures?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
for report generation which one you used proc report or data_null_?
3 Answers Accenture, Quintiles,
What statement do you code to write the record to the file?
How do you control the number of observations and/or variables read or written?
how does sas handle missing values in assignment statements? : Sas programming
what is validvarname and varnum? why we are using this options; explain with a syntax for this options?
how can u join the two tables without using proc sql Joins and nested queries ?
how do the in= variables improve the capability of a merge? : Sas programming
What are the difficulties u faced while doing vital signs table or dataset?
What is the command used to find missing values?
how would you create multiple observations from a single observation? : Sas programming
What are the analysis datasets created, and what are the new variables created in CLINICAL SAS
1 Answers Accenture, Sciformix,
You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20