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

Replace values in interval variables in SAS Enterprise Miner

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 126
Accepted Solution

Replace values in interval variables in SAS Enterprise Miner

Hi all,

 

I am new in EM so I have following question, if I want to change all values of 0 in an interval variable I have in my dataset to 2, I am having trouble doing that with the replacement node by using the replacement editor, i am not really sure on the options given.

 

Could somebody please guide me?

 

Kind regards and thank you in advance


Accepted Solutions
Solution
‎01-26-2017 03:54 PM
SAS Employee
Posts: 4

Re: Replace values in interval variables in SAS Enterprise Miner

[ Edited ]

There are several ways to do it:

 

one of the ways is using "Replacement node". You can choose from property panel if you want to replace values in interval variable or class variables. Replacement editor from property panel will let you do that easily.

 

Another method is by using transform node. Property panel of "transform Node" has sas code option under train section. Click on ellipses and in that window you can replace values by using simple if and else logic..

 

View solution in original post


All Replies
Solution
‎01-26-2017 03:54 PM
SAS Employee
Posts: 4

Re: Replace values in interval variables in SAS Enterprise Miner

[ Edited ]

There are several ways to do it:

 

one of the ways is using "Replacement node". You can choose from property panel if you want to replace values in interval variable or class variables. Replacement editor from property panel will let you do that easily.

 

Another method is by using transform node. Property panel of "transform Node" has sas code option under train section. Click on ellipses and in that window you can replace values by using simple if and else logic..

 

Frequent Contributor
Posts: 126

Re: Replace values in interval variables in SAS Enterprise Miner

Thank you very much, that worked fine

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 470 views
  • 2 likes
  • 2 in conversation