O'Reilly logo

PROC TABULATE by Example, Second Edition by Lauren Haworth Lake, Julie McKnight

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dealing with Numerous Labels

About the Examples

The next area of cleanup that we will tackle is excessive statistic labels. Every time you display a statistic in a table, by default PROC TABULATE generates a row or column heading for that statistic.
If you have two nested row variables and then you add a statistic to the row dimension of the table, you get row headings that are three items deep. Similarly, if you have two nested column headings and an analysis variable, and then you add a statistic, you will end up with column headings that are six items deep!
In the example here, we have a table with a single row variable and two nested column variables. The statistic that we have opted to display is the mean of the analysis variable income. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required