BookmarkSubscribeRSS Feed
meighanj
Obsidian | Level 7

I have a continuous variable which I want to run PROC HPBIN on, however, the problem is that there are a number of special characters in the data. When I run the HPBIN it treats the special characters as continuous data and messes up the bins. Is there anyway for me to specify for the special charcters to each go into their own bin and then bin the rest of the data normally?

1 REPLY 1
WendyCzika
SAS Employee

If you mean you have values like -999 in the data, then I think the only thing you can do is re-code those as missing values, then all the missing values will go into Bin 0 and won't affect the binning of the regular values.  

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 save with the early bird rate—just $795!

Register now

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2000 views
  • 0 likes
  • 2 in conversation