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-wordmark-2025-midnight.png

Register Today!

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.


Register now!

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
  • 1013 views
  • 0 likes
  • 1 in conversation