BookmarkSubscribeRSS Feed
cody_q
Calcite | Level 5

Dear all ,

I have tried using the (2) suggested methods of changing variable from nominal to interval and also to add   %let EM_TRAIN_MAXLEVELS=n; to project start code.

My dataset doesnt allow me to choose interval and i have placed the code in the Code utility .

Currently, the flow is SAS Code -> Dataset -> Decision tree

In my dataset i have user_id , item_id , results cols .

results is 1 for followed , -1 for not following

I wanna based the decision tree on 2 leave nodes ( followed ) or (not followed)

Thanks
YL

1 REPLY 1
kingsley
Calcite | Level 5

This error does not necessarily mean that there is a problem. If you encounter this error and do not suspect a problem with your data, then you can eliminate this message in two ways.

  • Change the level of the variable from Nominal to Interval in the data source.
  •   Add the following line of code in the Project Start Code: 

    %let EM_TRAIN_MAXLEVELS=n;

    N equals the maximum number of levels that you want to allow.

Use whichever method you judge to be statistically appropriate for your analysis.

http://support.sas.com/kb/20/054.html

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 13741 views
  • 0 likes
  • 2 in conversation