Home Forums SAS Programming Talks PROC SUMMARY vs PROC MEANS

This topic contains 0 replies, has 1 voice, and was last updated by  blogger rajeev 6 months, 2 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #856

    blogger rajeev
    Keymaster

    PROC MEANS and PROC SUMMARY compute descriptive statistics for an
    entire SAS data set.
    1. PROC MEANS produces subgroup statistics only when a
    BY statement is used and the input data has been
    previously sorted (use PROC SORT) by the BY variables.
    PROC SUMMARY automatically produces statistics for all
    subgroups, giving you all the information in one run
    that you would get by repeatedly sorting a data set by
    the variables that define each subgroup and running
    PROC MEANS/.

    2. PROC SUMMARY does not produce any information in
    your output so you will always need to use the OUTPUT
    statement to create a new data set and use PROC PRINT
    to see the computed statistics.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.