Create Footnote References in Table Cells - I

Many times when you build a table, you want to add footnotes to explain something about the underlying data. If the footnote applies to the entire table, it is easy to add a footnote below the table by using a FOOTNOTE statement. But what if a footnote applies only to a single row or column of the table?
An easy solution is to add an asterisk to the appropriate row or column label, and then use the asterisk in the footnote label. The following code produces Output 14.16, which has a footnote reference in the column heading created by changing the variable’s label and a footnote reference in a row heading created by changing the variable’s format:
PROC FORMAT; VALUE FOOTFT ... other values skipped ...

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.