Customize the Way Missing Data Looks in Your Table

Overview

When you know that you have missing data, there are many ways that you can deal with it. You can ignore it. If there are only a few missing observations, it might not be worth worrying about. But if you have a lot of missing data, you are going to have to find a way to deal with the problem. You can customize how missing data shows up in your tables, which makes your output clearer and easier to read.

Label Missing Data Using a Format and the DATA Step

For example, in our sample data, we have a number of observations where the union status is missing. We can recode them to 'Unknown', and then they can be included in the table with an easily understood label. This process requires ...

Get PROC TABULATE by Example, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.