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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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