Quick Tips

  • The simplest table possible in PROC TABULATE has to have three things: a PROC TABULATE statement, a TABLE statement, and a CLASS or VAR statement.
  • If the variable in your table is an analysis variable, then the statistic that you will get by default is the sum.
  • It’s always better to specify the statistic explicitly than to let PROC TABULATE select the default.
  • Variables in the CLASS statement are used to determine categories.
  • Variables in the VAR statement are used to calculate statistics.
  • See Available Statistics for a list of the available statistics and their keywords.
  • Make sure class variables are categorical, not continuous.
  • The asterisk is a PROC TABULATE nesting operator. Use an asterisk ...

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.