What exactly is the difference between Proc Means
and Proc Summary
? Many sites state that both these are the same, but unless each has something unique will SAS create it?
The key difference between PROC MEANS and PROC SUMMARY is that the default action of PROC MEANS is to place the analyses it performs in to your Output Window and in PROC SUMMARY the default is to create an output data set.
Computes descriptive statistics for variables across all observations or within groups of observations. See: For full syntax details, see PROC MEANS Statement.
You can use proc summary in SAS to quickly calculate the following descriptive statistics for one or more variables in a dataset: N: The total number of observations. MIN: The minimum value. MAX: The maximum value.
PROC MEANS is used to calculate summary statistics such as mean, count etc of numeric variables. It requires at least one numeric variable whereas Proc Freq does not have such limitation. In other words, if you have only one character variable to analyse, PROC FREQ is your friend and procedure to use.
@cmjohns gives the biggest difference...and from SAS discussion forum
"In earlier versions of SAS (SAS 5 and 6) PROC MEANS and PROC SUMMARY were separate procedures. Over time, by version 8, the code for the 2 procedures was standardized and "melded" together. There are essentially no differences except that MEANS creates output in the LISTING window or other open destinations, while SUMMARY creates an output dataset by default." (use the PRINT option in the Proc Summary statement to generate output)
Check the link Here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With