Quick Tips

  • The PCTN statistic is the percentage of the total number of observations that is in each cell.
  • The PCTSUM statistic is the percentage of the total sum that is in each cell.
  • ROWPCTN and ROWPCTSUM statistics print the percentage of the value in a single table cell in relation to the total of the values in the row.
  • COLPCTN and COLPCTSUM statistics print the percentage of the value in a single table cell in relation to the total of the values in the column.
  • Using the ALL keyword is an easy way to show that the percentages equal 100%.

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.