Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

binning approach for variables with mixed types

Reply
Contributor
Posts: 29

binning approach for variables with mixed types

Hi, does anyone have any insight on an approach to binning multiple variables with mixed data types - for example: variable A can take the value A, B, C, D, E or any number 1-1000 - I've seen approaches that directly bin numeric or character variables but not one that deals with both types in one variable - any ideas?  thanks

Super User
Posts: 10,020

Re: binning approach for variables with mixed types

Posted in reply to to_the_point

Maybe you can use RANK() to transform them into ASSIC code ,and bin them according to your rule .

Contributor
Posts: 29

Re: binning approach for variables with mixed types

Thanks Xia, but I'm unfamiliar with ASSIC code - do you have an example?

Super User
Posts: 10,020

Re: binning approach for variables with mixed types

Posted in reply to to_the_point

Sorry to confuse you . Use Rank() you can transform all these character into numeric value ,like 23 34 65 ...

This approache can directly bin your mixed-data like it is numeric .

Ask a Question
Discussion stats
  • 3 replies
  • 323 views
  • 0 likes
  • 2 in conversation