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.  

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1906 views
  • 0 likes
  • 2 in conversation