Available Statistics

The following statistics are available for class variables; all other statistics require an analysis variable (listed in a VAR statement):
  • N
  • PCTN
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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.