Hi,
My question is the following:
Consider a data set where we have 2 variables called "Fruit" and another one called "CFruit" with corresponding codes.
Ex:
Variable "Fruit": lemon, orange, melon, banana, lemon etc.
Code Variable for Fruit "CFruit": 1, 7, 3, 5, 1, etc.
So that, 1 = lemon, 7 = orange, 3 = melon, 5 = banana, etc.
In SAS Enterprise Miner, is it possible to use the "CFruit" variable as input to train a model (for instance a decision tree), but display the corresponding labeled variable "Fruit" ?
In fact, it is easier for me to interpret the model with labels instead of codes, but for implementing the process in an automated chain it is more convenient and secured to use codes.
Thank you very much for your help.
Best Regards,
Marco
Create a format and apply the format to the variable in the SAS data set.
It should operate as you desire. It's probably easier to do that in your prep step, which I find easier outside of EM.
Create a format and apply the format to the variable in the SAS data set.
It should operate as you desire. It's probably easier to do that in your prep step, which I find easier outside of EM.
When in doubt check the documentation, especially the examples.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.