Put It All Together

This final example pulls together each of the PROC TABULATE features demonstrated in this chapter. This will be a two-dimensional table with multiple class variables, column subtotals, and row and column totals. Although this is a complex table, you can break it down into each of the elements that have already been presented.
  1. The starting point for the table is the two-dimensional table with column subtotals from Add Subtotals for Levels. The only change made to this code is to switch the N statistic to a MEAN and add INCOME as an analysis variable. Because this table is virtually the same as in the previous example, the output is not shown.
    PROC TABULATE DATA=TEMP; CLASS EDUC2 GENDER FULLTIME; VAR INCOME; TABLE EDUC2*(GENDER ...

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.