BookmarkSubscribeRSS Feed
juanvg1972
Pyrite | Level 9

Hi 

 

I am using proc hpspit in order to create a decision tree. I am usin SAS/STAT in SAS 9.04.01M5P091317

 

This is my code:

 

proc hpsplit data = train nodestats=arbol;
    target baja / level=nominal;
    input cod_posicion educacion sexo / level=nominal;
    input edad ant salario eval / level = interval;
    /* Export information about variable importance */
    output importance=import;
    /* Export the model code so this can be used to score testing data */
    code file="/home/user1/pgmas/model_arbol3.sas";
    rules file="/home/user1/pgmas/fich/reglas3.txt";
run;

and when I execute, I gets an error:

 

ERROR: Levelization contains no levels!

But I have specified the level of each variable.

 

The same proc and options runs well with other datasets

 

Can anybody help me??

1 REPLY 1
juanvg1972
Pyrite | Level 9

Sorry, there was a problem in my data, not in the proc.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 899 views
  • 0 likes
  • 1 in conversation