Available Statistics

The following statistics are available for class variables; all other statistics require an analysis variable (listed in a VAR statement):
  • COLPCTN
  • N
  • NMISS
  • PAGEPCTN
  • PCTN
  • REPPCTN
  • ROWPCTN
These statistics, the formulas that are used to calculate them, and their data requirements are discussed in the Appendix "Keywords and Formulas" in Base SAS Procedures Guide.
Use the following keywords to request statistics in the TABLE statement or to specify statistic keywords in the KEYWORD or KEYLABEL statement. For some examples that use quantiles, see Quantile Statistics Examples.
Note: If a variable name (class or analysis) and a statistic name are the same, then enclose the statistic name in single quotation ...

Get PROC TABULATE by Example, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.