BookmarkSubscribeRSS Feed
apxprdtr10
Calcite | Level 5

I have 65 categorical variables and all of them have around 15% missing values. It would be great if you can help me to suggest how to impute missing values for categorical variables.

5 REPLIES 5
PeterClemmensen
Tourmaline | Level 20

Well, it depends largely on what you want to do with the data.. However, you can use PROC STDIZE to impute the data. 

 

Also, see the article Mean imputation in SAS where some issues with mean imputation are highlighted.

apxprdtr10
Calcite | Level 5

I want to impute mode values for missing categorical variables.

PeterClemmensen
Tourmaline | Level 20

Ok. Do you have By Groups in your data?

Ksharp
Super User

One way is using its MODE to replace missing.

Another smart way is using PROC MI .

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 3705 views
  • 0 likes
  • 3 in conversation